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)
How to generate group mean variables for each time?My data is as now code pool time price a1 j1 20190101 1 a1 j1 20190102 2 a1 j2 20180101 …
Store numeric values into memory to use them to create new data setsI have been reading the Statalist for years and I am thrilled to finally join this forum and potenti…
consecutive observationHi, I have read this https://www.stata.com/support/faqs/d...-observations/, and understand how to k…
Infix problem (using invalid varname)Hello, I am trying to read in fixed width data from a .txt file. I am following the documentation f…
Generating new variable for several observationsHi Everyone, I have this example below, where I have used "exapnd 12" to have each city 12 times. T…
Subscribe to:
Post Comments (Atom)
0 Response to create new categorical variable with different cutoffs depedent on condition (sex)
Post a Comment