Hello everyone,
I have some trouble while using properly the command estadd.
I want a row at the bottom of the table that indicates "Yes" or "no" for the individual fixed-effect/ year fixed effect and another one that indicate if or not my estimation is robust.
Thus, I need help to identify the mistakes in my code.
I use a nlswork.dta as a database in this example.
what I get:
-----------------------------------
(1) (2)
ttl_exp ttl_exp
--------------------------------------------
age -0.00861 -0.00861
(0.0506) (0.0618)
ind_code -0.0427*** -0.0427***
(0.00523) (0.00897)
occ_code -0.0330*** -0.0330***
(0.00543) (0.00806)
_cons 1.171 1.171
(0.968) (1.187)
--------------------------------------------
indivudal ~s
year fixed~t 28081 28081
--------------------------------------------
Standard errors in parentheses
* p<.10, ** p<.05, *** p<.01
What I want:
--------------------------------------------
(1) (2)
ttl_exp ttl_exp
--------------------------------------------
age -0.00861 -0.00861
(0.0506) (0.0618)
ind_code -0.0427*** -0.0427***
(0.00523) (0.00897)
occ_code -0.0330*** -0.0330***
(0.00543) (0.00806)
_cons 1.171 1.171
(0.968) (1.187)
--------------------------------------------
N 28081 28081
indivudal ~s Yes yes
year fixed~t Yes yes
Robust no yes
--------------------------------------------
Standard errors in parentheses
* p<.10, ** p<.05, *** p<.01
Thank you
I have some trouble while using properly the command estadd.
I want a row at the bottom of the table that indicates "Yes" or "no" for the individual fixed-effect/ year fixed effect and another one that indicate if or not my estimation is robust.
Thus, I need help to identify the mistakes in my code.
I use a nlswork.dta as a database in this example.
what I get:
-----------------------------------
(1) (2)
ttl_exp ttl_exp
--------------------------------------------
age -0.00861 -0.00861
(0.0506) (0.0618)
ind_code -0.0427*** -0.0427***
(0.00523) (0.00897)
occ_code -0.0330*** -0.0330***
(0.00543) (0.00806)
_cons 1.171 1.171
(0.968) (1.187)
--------------------------------------------
indivudal ~s
year fixed~t 28081 28081
--------------------------------------------
Standard errors in parentheses
* p<.10, ** p<.05, *** p<.01
What I want:
--------------------------------------------
(1) (2)
ttl_exp ttl_exp
--------------------------------------------
age -0.00861 -0.00861
(0.0506) (0.0618)
ind_code -0.0427*** -0.0427***
(0.00523) (0.00897)
occ_code -0.0330*** -0.0330***
(0.00543) (0.00806)
_cons 1.171 1.171
(0.968) (1.187)
--------------------------------------------
N 28081 28081
indivudal ~s Yes yes
year fixed~t Yes yes
Robust no yes
--------------------------------------------
Standard errors in parentheses
* p<.10, ** p<.05, *** p<.01
Code:
eststo clear use http://www.stata-press.com/data/r13/nlswork xtset idcode year eststo: xtreg ttl_exp age ind_code occ_code i.year ,fe estadd local individual "yes" estadd local year "yes" estadd local robust "no" eststo: xtreg ttl_exp age ind_code occ_code i.year ,fe robust estadd local individual "yes" estadd local year "yes" estadd local robust "yes" esttab , s(fixed N, label("indivudal fixed effects" "year fixed effect" "Robust")) ar2 se noconstant star(* .10 ** .05 *** .01) drop(*year)
Comment