Dear forum,
I have a dataset of 407 participants, i am trying to categorise them by their hip to waist ratio. This is a continuous variable which I would like to ceate a new categorical variable with.
I am trying to categorise my continuous hip:waist ratio into a new categorical variable of three categories 1 "low" 2 "average" 3 "high".
However, the cutoffs for low average high are different for male and female.
Is there a way to do this with egen cut() function or is something more complex?
My variables: sex
waisthip
Grateful for any help,
Related Posts with create new categorical variable with different cutoffs depedent on condition (sex)
Performing factor analysis with panel dataHello everyone, I have panel data with six variables concerning governance quality for 59 countries…
Merging two datasets with a common variableHello all, I am using STATA 16 Please I want to merge two datasets, using the common variable medcod…
reghdfe takes hours - how to run panel regressions with FE faster?Good morning, I have a dataset with 4 million observations on 2 million students in two points in t…
r(303) equation not found after using "test" command to see if coefficients = 0I am trying to test if the sum of coefficients is significantly different from 0, but for some reaso…
"( invalid name" r198 error while running a loop tempname sdgp_format postfile `sdgp_format' state gdp_pcap fyear using sdgp_format.dta forvalues j …
Subscribe to:
Post Comments (Atom)
0 Response to create new categorical variable with different cutoffs depedent on condition (sex)
Post a Comment