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
ttest multiple variableDear All, I want to perform a simple ttest to compare multiple variables by gender. i have tried Co…
Create a variable based its proportionDear Stata Users, Please, help me with the following issue. I need to calculate reserves based on t…
combining variables' dataHello every one today i faced a small issue which is I have three questions Q1 Q2Q3 each one branche…
propensity score matching modelThis time I will try to make my request a bit clear. I have watched many tutorial videos about PSM m…
regress rob, regression model with robust std. errorsDear community! I have a model with the violation the assumption about homoscedasticity. So first i…
Subscribe to:
Post Comments (Atom)
0 Response to Re coding many variable simultaneously
Post a Comment