Hi,
I have a regression table with four specifications. My independent variables are 2 indicator dummy variables (social and environmental) and their interactions.
I also need to report their linear combinations:
1. social + social*Env
2. environmental + social*Env
I have managed to get the ouptut in the following table using the estout command but would like the lincom results to be below the constant results ideally with dashed line separating these from constants and observations.
I also need the srandard errors to be in brackets like the rest of the output and the stars to represent significance.
Would anyone have some tips on how to figure out the above?
Here is my code
I have a regression table with four specifications. My independent variables are 2 indicator dummy variables (social and environmental) and their interactions.
I also need to report their linear combinations:
1. social + social*Env
2. environmental + social*Env
I have managed to get the ouptut in the following table using the estout command but would like the lincom results to be below the constant results ideally with dashed line separating these from constants and observations.
I also need the srandard errors to be in brackets like the rest of the output and the stars to represent significance.
Would anyone have some tips on how to figure out the above?
Here is my code
Code:
eststo clear eststo: quietly reg Too_Cheap i.Soc##i.Env pc1 if mon == 1 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 Cheap i.Soc##i.Env pc1 if mon == 1 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 Exp i.Soc##i.Env pc1 if mon == 1 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 Too_Exp i.Soc##i.Env pc1 if mon == 1 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 regression.doc, replace varwidth(20) label nobaselevels nogaps title({Table 1.} {Regression Output for VW series}) /// nonumbers mtitles("Too Cheap" "Cheap" "Expensive" "Too Expensive") addnote("Source: merged.dta") eststo clear
Comment