I have a data file where I have variables with body mass index (BMI) (bmi1), age in months (monthsold1), gender (male). I want to categorize the BMIs as normal, overweight and obese.
I am getting a file not found error message when I try to use the zbmicat extension to the egen function. It seems to be expecting a file and in my reading of the syntax, I don't see where one specifies a file when using the function. Here is my code:
. egen bmicat1 = zbmicat(bmi1), xvar(monthsold1) gender(male) gencode(male=1, female=0) ageunit(month)
file "zbmicat.dta" not found
r(601);
Clare
I am getting a file not found error message when I try to use the zbmicat extension to the egen function. It seems to be expecting a file and in my reading of the syntax, I don't see where one specifies a file when using the function. Here is my code:
. egen bmicat1 = zbmicat(bmi1), xvar(monthsold1) gender(male) gencode(male=1, female=0) ageunit(month)
file "zbmicat.dta" not found
r(601);
Clare
Comment