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
Oaxaca-Blinder decomposition: percentage greater than 100Dear all, I'm currently running the Oaxaca-Blinder Decomposition on a binary outcome variable, stun…
Looping in StataHi, I am facing an issue that I am trying for a while. I want to create a dummy variable taking val…
Interaction terms in regressionHello everyone, I am writing my BA-Thesis in Economics and hope somebody can help me out. First le…
Using macros with Drawnorm to "clone" multiple datasetsHi there I am trying to loop drawnorm over mutiple STATA datasets, however I want drawnorm to use t…
from panel data to time seriesHello everyone, I want to know how to go from panel data to time series. I have this dataset: ID ye…
Subscribe to:
Post Comments (Atom)
0 Response to Creating variables
Post a Comment