Hi all!
I am new to Stata and I tried to find an answer before daring to post this question.
I am trying to make things run smoother and I thought about having a macro involving factor variables.
Something in the line of:
I run the code in one take, but it doesnt work.
What am I missing? I think it might have to do with syntax(fv), but I dont know how to work it into the code.
Any suggestions much appreciated
A.
I am new to Stata and I tried to find an answer before daring to post this question.
I am trying to make things run smoother and I thought about having a macro involving factor variables.
Something in the line of:
Code:
global depvar "y z t"
global controls "ib2.x1 i.x2 c.x3"
foreach depvar in $depvar {
logit `depvar' $controls
}
What am I missing? I think it might have to do with syntax(fv), but I dont know how to work it into the code.
Any suggestions much appreciated
A.

Comment