Dear all,
Thank you for helping me. I have defined a global macro, but stata says there is sth wrong with it, when I use it. The following is my syntax:
sysuse nlsw88.dta, clear
global xx "hours ttl_exp married union"
reg wage $xx
est store homo
But stata says the following:
reg wage $xx
“hours invalid name
r(198);
end of do-file
r(198);
why it is a invalid name? I have defined and used it correctly.
Best,
Eddie
Thank you for helping me. I have defined a global macro, but stata says there is sth wrong with it, when I use it. The following is my syntax:
sysuse nlsw88.dta, clear
global xx "hours ttl_exp married union"
reg wage $xx
est store homo
But stata says the following:
reg wage $xx
“hours invalid name
r(198);
end of do-file
r(198);
why it is a invalid name? I have defined and used it correctly.
Best,
Eddie
Comment