Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Significance stars for lincom estimates in esttab regression output

    Hi all,

    I have put together a command for multiple regressions and their respective linear combinations using the esttab command.

    I however need to insert significance stars for the linear combination coefficients too.
    Can anyone spot where I can do this in the following code, and how?

    Any suggestions are greatly appreciated.

    Thanks

    Code:
    eststo clear
    eststo: quietly reg DC i.Soc##i.Env Price_level
    lincom _b[1.Soc] + _b[1.Soc#1.Env]
    estadd scalar soc_soc_env=r(estimate)
    estadd scalar soc_soc_envSE = r(se)
    lincom _b[1.Env] + _b[1.Soc#1.Env]
    estadd scalar env_soc_env=r(estimate)
    estadd scalar env_soc_envSE = r(se)
    
    eststo: quietly reg DC i.Soc##i.Env Attitude Price_level i.Order i.female Age
    lincom _b[1.Soc] + _b[1.Soc#1.Env]
    estadd scalar soc_soc_env=r(estimate)
    estadd scalar soc_soc_envSE = r(se)
    lincom _b[1.Env] + _b[1.Soc#1.Env]
    estadd scalar env_soc_env=r(estimate)
    estadd scalar env_soc_envSE = r(se)
    
    eststo: quietly reg DC i.Soc##i.Env Price_level mon
    lincom _b[1.Soc] + _b[1.Soc#1.Env]
    estadd scalar soc_soc_env=r(estimate)
    estadd scalar soc_soc_envSE = r(se)
    lincom _b[1.Env] + _b[1.Soc#1.Env]
    estadd scalar env_soc_env=r(estimate)
    estadd scalar env_soc_envSE = r(se)
    
    eststo: quietly reg DC i.Soc##i.Env Price_level Attitude i.Order i.female Age mon
    lincom _b[1.Soc] + _b[1.Soc#1.Env]
    estadd scalar soc_soc_env=r(estimate)
    estadd scalar soc_soc_envSE = r(se)
    lincom _b[1.Env] + _b[1.Soc#1.Env]
    estadd scalar env_soc_env=r(estimate)
    estadd scalar env_soc_envSE = r(se)
    
    
    
    esttab, scalars(soc_soc_env soc_soc_envSE env_soc_env env_soc_envSE) ar2 se, using Regression33.tex, replace varwidth(20) label nobaselevels nogaps ///
    nonumbers mtitles("1" "2" "3" "4") 
    eststo clear
Working...
X