How can I combine variables?
These variables all refer to use of prescription benzodiazepines:
valium
ativan
benzo_other
The variables are categorical:
- More than once per day
- Once per day
- A few times per wee
- Weekly or less
- Monthly or less
- I haven't taken this
Because sample sizes are so small, I'd like to combine these variables to ONE variable on benzodiazepine use.
Could you please help me with a code or command?
I also have numerical variables I'd like to combine
Related Posts with How do you combine categorical and numerical variables?
FAQ: Out of room on your Macintosh hard drive? Changing the location of Stata's tmpdir using the STATATMP environment variableThe following two FAQs discuss using STATATMP to assign Stata temporary files (created by preserve o…
Convert correlation coefficients to fractional rankingsHi, The variable (acc) in my data is the Pearson correlation coefficients. However, I would like to…
How can I define a variable in terms of its relative position to another variable?Hi all, I will really appreciate your help in this matter. I would like to know how can I define a…
Methods/Design QuestionHello, I am completing a data request to our State Education Agency for student level data from 200…
Twoway graph generates vertical lines at min/max values of predictorDear Statalist, Why does my twoway graph generate vertical lines at the minimum and maximum values …
Subscribe to:
Post Comments (Atom)
0 Response to How do you combine categorical and numerical variables?
Post a Comment