In principle, this produces the desired output. But it also plots a standard error and significant stars for the dependent variable mean, which I want to omit.
Code:
sysuse auto, clear eststo: reg price mpg eststo: mean price if e(sample) esttab, keep(mpg) ren(price mpg)
Code:
sysuse auto, clear eststo: reg price mpg sum price if e(sample), meanonly estadd mat ymean=r(mean) esttab, cell("b ymean" "se") esttab, cell("b ymean" "se") ren(c1 mpg) keep(mpg)
Code:
sysuse auto, clear eststo: reg price mpg estadd ysumm esttab, cell("b ymean" "se") keep(mpg)
0 Response to Plotting dependent variable mean besides coefficients using esttab
Post a Comment