Dear all.
Please, How can I create new two variables (Z and Y) using the median of variable (X) ? . I mean I want to create variable Z equal to the values above the median of variable X and Y otherwise. Thanks a lot.
Related Posts with Create new variables using the median
Stata 17- Percentages of the total sumHello Everyone, I have a list of individuals and their incomes. I have divided them into 5 quintiles…
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Monthly Unemployment Rate Calculation for Two Groups of StatesHi, I am working on a project in which I have data from the CPS. I also have data that tells me when…
Need advice on recoding categorical variables into continuous variables and vice versaI am new to data analysis and Stata, so I apologise if I have not explained this very well. I have …
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Subscribe to:
Post Comments (Atom)
0 Response to Create new variables using the median
Post a Comment