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
Stata CodeHey Stata Community, I'm looking for a way to generate a variable depending on the "4 last letters…
Ordered Probit and EndogeneityHi all, I've tried to read through the forum to see if there were any similar posts, so I apologise …
clttest gives me different results every time I run itHi, I am running something like clttest truth, cluster(userid) by(envyfree) and every time I run t…
Post-hoc multiple comparison test with adjustment after Friedman's testHi all, Does anyone know if STATA has any post-hoc test available after Friedman's test, to get the…
Importing data conditional on somethingHi everyone! I am facing the following problem: I want to import an excel that is created by anothe…
Subscribe to:
Post Comments (Atom)
0 Response to Re coding many variable simultaneously
Post a Comment