Hello,
I want to tell stata to create a variable giving a code of 0/1 based on around 200 variables containing string. If any values within those 200 variables contain F20 or F21 I want the new variable to be 1. Any advice greatly received. I want it to ignore any missing values but if all 200 values are missing I would want the new variable to give a missing value not a 0.
Related Posts with Create a variable (0/1) based on multiple variables containing string
tobit post-estimationI am trying to do a avplot after my tobit estimation to check for outliers/ extreme values here are…
generate variable that can change every yearHi guys, I wanna thank you first, cause I have received so much help here. This is such a great foru…
estimating percentiles of gamma distributionHi, I'm a new stata user and currently I'm trying to fit a gamma distribution to my data and compute…
spread one number within a groupI have a data set looking like this, when fic is not USA, local_markup is missing value. For the mis…
Omitted Variable in Margin Order Probit/LogitDear all, I'm having troubles with a simple ordered probit model. Indeed, I am doing a research to …
Subscribe to:
Post Comments (Atom)
0 Response to Create a variable (0/1) based on multiple variables containing string
Post a Comment