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?
Generating years from interval (for dummy variable purposes)Array I've a data set as show above. The cikcode represents individual companies and i have the sta…
Help in Fama McBeth regressionHi, I'm working on fund performance persistence. I want to run a Fama McBeth regression using marke…
Pie graph with missing values in spmapHi all, I wonder if its possible get a graph pie in blank if exist missing value in the data, examp…
Please help in codingDear all, I tried to code ethnic group but have difficulty. Survey question-What is your ethnicity?,…
CMClogit model - not concaveHello everyone, I am trying to run a discrete choice analysis of cross-sectional data (long format).…
Subscribe to:
Post Comments (Atom)
0 Response to How do you combine categorical and numerical variables?
Post a Comment