Hi,
I am trying to create a categorical variable of "activity". I want 0=<150 mins of activity. and 1=>/equal to 150mins of activity.
I have two continuous variable categories:
Moderate for which each frequency = 15 mins (e.g. 4 = 60 mins)
Strenuous for which each frequency = 30 mins (e.g. 4 = 120 mins)
I want the categorical variable to be able to be = 1 for any combination of the continuous variables that is >/equal to 150 mins or =0 if <150 mins of activity.
Is anyone able to help by providing some advice as to the type of commands which would be suited to this?
Thank you
Ben
Related Posts with Creating categorical variables with multiple different conditions from continuous variables
Time series regression analysis with multiple desricptorsHi, I need to run a multivariate time series regression with multiple descriptors. Could someone pl…
How to obtain wald test value for each category after multinomial logistic regressionI have conducted a multinomial logistic regression using the code: mlogit housetype gender race inc…
Negative probabilities in 95% CI when using margins after nbregHello everyone, I'm fitting a negative binomial regression model using nbreg in Stata 16.0 and then…
Conditional logit (with a different number of alternatives for each case)?Dear all, I had posted this a while ago and not received a response. Am reposting in case someone h…
Help deciding on panel modelHi there, I am new to Stata 15 and need help deciding on a regression model for my panel data. I ha…
Subscribe to:
Post Comments (Atom)
0 Response to Creating categorical variables with multiple different conditions from continuous variables
Post a Comment