Hiii All,
I am using a datasheet which have many categorical variables like v1, v2 , v3, v4, v5 .............v60 with values (0 , 1 , 8, 9) only and also have a variable named "stage of disease" (having 3 categories: mild, moderate and severe) ....
Here i want to replace all the values from v1 to v20 =9 (here 9 means not applicable) if "stage of disease" is mild.
It would me most helpful if anyone help me doing so.... as it is so time taking to type replace function too many time.
thanks in advance...
Related Posts with Re coding many variable simultaneously
Swimmer PlotCan someone please show me how to draw a Swimmer plot in Stata ? This is a type a graph used in Onco…
Summing a row for one observation onlyDear all, I would like to sum values that are in the same row but on different columns. For instanc…
coefplot: point estimates + significance levelsDear Stata users, I am using -coefplot- to vizualize average marginal effects. I am looking a way h…
Proper way to merge dataHello I have two data sets, they both have the common variable person_ID. One dataset consists of th…
foreach and if condition: if not found r(111);Hi, I am trying to loop through a list of variables to replace some values of variables named "varA…
Subscribe to:
Post Comments (Atom)
0 Response to Re coding many variable simultaneously
Post a Comment