Hi,
I want to create a table with my estimation results. Moreover, I want to have the label of the dependent variable as column title. See the following code:
local y "wage income"
foreach var in y{
ivreg2 `y' age age_sq educ, cluster(id)
est store olscomp`y', title(`:label variable `y'' sample1)
}
estout olscompwage olscompincome, label
This code returns only invalid syntax. Do you have any clue? Any help is highly appreciated.
Daniel
I want to create a table with my estimation results. Moreover, I want to have the label of the dependent variable as column title. See the following code:
local y "wage income"
foreach var in y{
ivreg2 `y' age age_sq educ, cluster(id)
est store olscomp`y', title(`:label variable `y'' sample1)
}
estout olscompwage olscompincome, label
This code returns only invalid syntax. Do you have any clue? Any help is highly appreciated.
Daniel
Comment