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?
reghdfe: running a difference in difference model with state FE, year FE and country specific trendsHello, I would like to run a diff-in-diff model with state fixed effects (FE), year FE and states sp…
Why my stata run 'twoway scatter' can not get normal stata pictureHelp! Why my stata run 'twoway scatter' can not get normal stata picture, but get the picture like t…
Help Required with Statsby Dear all, I have a panel dataset with 50 stocks and 43 quarters. Given below is a subset of my data…
How to combine variables with same values into oneHi everyone, Is there anybody known how to combine those variables that have totally the same value…
Listing and retrieving data from SQL views when using odbcHi, I have data stored in a view in MS SQL Server and I am using ODBC to connect to this database f…
Subscribe to:
Post Comments (Atom)
0 Response to How do you combine categorical and numerical variables?
Post a Comment