I would like to replace the constant with control group mean when running a regression. Currently, through use of estout's stats() option, I can add it as part of the table's statistics, but what I would like to do is place it where the constant would normally be in the regression results table. My current sample code is:
eg.
reg x Treatment a b c
sum x if Treatment == 0
estadd scalar n1 = r(mean): est*
esttab using "Test.csv", b(%4.2f) p star(* 0.10 ** 0.05 *** 0.01) stats(n1 N r2_a, fmt(%9.0f %9.0g %9.2f) labels ("Control Mean" "Obs" "Adjusted R-Squared")) nogap brackets label replace
What this does is to place a line before displaying the options in stats, yet I would like the Control Mean to appear where Constant in the regression table would. Kindly advice.
Thank you.
Gerry
eg.
reg x Treatment a b c
sum x if Treatment == 0
estadd scalar n1 = r(mean): est*
esttab using "Test.csv", b(%4.2f) p star(* 0.10 ** 0.05 *** 0.01) stats(n1 N r2_a, fmt(%9.0f %9.0g %9.2f) labels ("Control Mean" "Obs" "Adjusted R-Squared")) nogap brackets label replace
What this does is to place a line before displaying the options in stats, yet I would like the Control Mean to appear where Constant in the regression table would. Kindly advice.
Thank you.
Gerry
Comment