Hello,
I'm running the following code:
label variable outcome ''O"
label variable treatment "T"
label variable cohort "C"
label variable group "G"
reg outcome i.treatment##i.cohort##i.group i.race i.ed income
estimates save reg1
Afterwards, I want to make a table of regression results. So I use:
estimates use reg1
eststo reg1
esttab reg1 using reg1.doc, se r2 label varlabels(_cons Constant) indicate(Controls = *.race *.ed income ) nobaselevels replace
My first question: the above code gives me an error: *.race not found, or *.edu not found. I assume this means Stata is storing the fixed effects in the regression using different names.
How do I access the names that Stata is using (and would recognize in -esttab-)?
My second question: the "label" in the -esttab- is not using all the labels that I assigned. Why is this happening?
Thank you.
Best regards,
Amrita Sanyal.
I'm running the following code:
label variable outcome ''O"
label variable treatment "T"
label variable cohort "C"
label variable group "G"
reg outcome i.treatment##i.cohort##i.group i.race i.ed income
estimates save reg1
Afterwards, I want to make a table of regression results. So I use:
estimates use reg1
eststo reg1
esttab reg1 using reg1.doc, se r2 label varlabels(_cons Constant) indicate(Controls = *.race *.ed income ) nobaselevels replace
My first question: the above code gives me an error: *.race not found, or *.edu not found. I assume this means Stata is storing the fixed effects in the regression using different names.
How do I access the names that Stata is using (and would recognize in -esttab-)?
My second question: the "label" in the -esttab- is not using all the labels that I assigned. Why is this happening?
Thank you.
Best regards,
Amrita Sanyal.
Comment