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)
Interaction terms in logit regression Computing real odd after estimationHi there, I am writing this logit model in stata: logit prop_FS_cat i.Path##need..., where Path is h…
Clustered SE with SVYDear all, I am using a longitudinal survey with a complex design. Thus, I am using svy command. - …
Ordering table by percent "yes"I'm pretty new to STATA and this is probably a silly question, but I can't seem to find the answer a…
Summation by month + yearHi, I have converted a string variable called last_activity containing dates into a date formatted …
Interaction effects and few cases at the ends of a distribution.Dear all, I am estimating a linear regression with an interaction effect between a continuous and a…
Subscribe to:
Post Comments (Atom)
0 Response to create new categorical variable with different cutoffs depedent on condition (sex)
Post a Comment