I am trying to export my regression results to excel with the command outreg2
:
reg index_bhar adsue1 i.date, cluster(company_id)
outreg2 using stock_regression.csv, replace bdec(4) sdec(4) ctitle(DSUE1) addstat(Adjusted R-squared, e(r2_a)) keep(adsue1) addtext(Time FE, YES)
How can I add the t-value and p-value of the regression results in Stata, in other words which e-class do I have to use?
help outreg2
. Thestats()
option allows you to specify t values, p values and more options. – Aspen Chenstats(coef se tstat pval)
and click on theseeout
link. – Aspen Chen