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
rename all words of localDear all, I have trouble finding my way through all possible local manipulations to find what I nee…
Panel Data Missing Observations! SolutionDear Statalisters, I am currently running analysis on a 2-period panel data set from China. I use a…
Using Wald Test for Complex Interaction ModelsDear all: My name is Siyu. I am running a random-effects logit model involving many interaction ter…
Meta-regression with WLS: Wrong sign due to weightingDear Statalist, I'm asking for advice to solve a problem with my meta-regression model based on a W…
Gravity model, low R2-withinHi all ! I'm running a bilateral trade panel data of 42 reporter with 186 partner for the year 2015…
Subscribe to:
Post Comments (Atom)
0 Response to Creating categorical variables with multiple different conditions from continuous variables
Post a Comment