Hi, I am a complete beginner to stata and need help with creating a new variable.
I am trying to make long term conditions into new variables, for example, one would be a variable for Atrial Fibrillation so that I can then filter through my data to see who has it and who doesn't. I tried to use g Atrial Fibrillation = 0, but then I got a message saying "too many variables specified" so I'm not sure what to do now.
Any help would be useful, thank you!
Related Posts with Creating variables
Presenting Information Criteria in Latex form from StataHi guys, I would like to display my information criteria in choosing the lag length for the estimat…
Foreach and string variablesI have a panel data set with country, years, and the following three (relevant) variables: C (float…
Looping within a loopHello, I am using a panel dataset. It both id and ic variable (ic: income category: HI, LI, LMI, UMI…
Droping "NA"sHi Stata users. I have 26 variables that contain some observations as NA. Is there a way ( olther t…
Threshold regressionI need your help. My model is Yit=a1(1-I*)(D-D*)+a2xI*(D-D*)+bxXit+eit while I*=1 if D>D* and I*=…
Subscribe to:
Post Comments (Atom)
0 Response to Creating variables
Post a Comment