As a novice of Stata, I am facing some coding issues. I have loaded my Excel file (3 vars, 30 obs), and when I put in the following commands: **generate Y = .
replace Y = 0 if binary_outcome = "0"
replace Y = 0 if binary_outcome = "no"
logit Y binary_numeric i.X**
I get the following result "binary_outcome not found", and "variable binary_numeric not found".
What am I doing wrong?
replace Y = 0 if binary_outcome = "0"
replace Y = 0 if binary_outcome = "no"
logit Y binary_numeric i.X**
I get the following result "binary_outcome not found", and "variable binary_numeric not found".
What am I doing wrong?
Comment