Hey everyone,
I would like to generate a new variable that is continous and only contains the measurements of males.
I tried:
gen RAVI_males = RAVI & female_sex ==0
However, this just gives me a binary variable with 1=male and 0=female.
However, I want a variable that has the RAVI''s of only males.
Any help is appreciated!
I would like to generate a new variable that is continous and only contains the measurements of males.
I tried:
gen RAVI_males = RAVI & female_sex ==0
However, this just gives me a binary variable with 1=male and 0=female.
However, I want a variable that has the RAVI''s of only males.
Any help is appreciated!
Comment