Hey guys,
I am new to STATA and I want to generate a new variable that contains only males and a BMI of over 25.
I have variables gender as binary (0= males and 1=females)
BMI I also have as a seperate variable.
My best guess is to make to use the gen command in combination with if, but I am not sure.
Any help would be highly appreciated!
Thanks in advance
I am new to STATA and I want to generate a new variable that contains only males and a BMI of over 25.
I have variables gender as binary (0= males and 1=females)
BMI I also have as a seperate variable.
My best guess is to make to use the gen command in combination with if, but I am not sure.
Any help would be highly appreciated!
Thanks in advance
Comment