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
Losing a value after dropping duplicatesHi everyone I need a general code to fill the remaining cells at "cvcie0" for the same "gvkey" and…
How to select optimal GMM modelGreetings, I am estimating several specifications for the macroeconomic determinants of non-perform…
xtunitroot error 'too many variables specified'Good afternoon. The dataset looks like this: Code: * Example generated by -dataex-. For more info…
Rename Variables using a loopGood morning My problem is the following. I would like to rename my variables using a loop. My initi…
Poisson regressionHi everyone! this platform has been a great help for me. I would like to ask questions on Poison reg…
Subscribe to:
Post Comments (Atom)
0 Response to Creating variables
Post a Comment