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
Dynamic panel data analysis with two dependent variablesHey, I want to do an arellano bond estimation on my data. My equation is GEit = a + b1GBit + b2 Xi…
Addition of date / ageHello , I'm working on computing age of firms from incorporation date. Some of the dates in my data…
Residual Diagnostic TestsHello! Probably a stupid question, but still relatively new to Stata. I have a wage regression and …
Adding IQR to trajectory line plot based on WIDE format dataDear experts, The Profileplot command can display the trajectory line based on median. profileplot …
Drop the values of a variable with if conditionHello everyone, I have a variable named "diversity" (and a bunch of other variables) and I would li…
Subscribe to:
Post Comments (Atom)
0 Response to Creating variables
Post a Comment