Hi,
I am trying to add a F-test (irx spx for instance) to the spreadsheet that I am creating below:
Can anyone help me with that? Thanks!
Florent
I am trying to add a F-test (irx spx for instance) to the spreadsheet that I am creating below:
Code:
use http://www.stata-press.com/data/r13/ibm, clear tsset t quietly reg ibm irx spx //Run regression to obtain Adj. R^2 local rsqr = round(e(r2_a),0.01) //Save Adj. R^2 in a local local text = "Adjusted R^2" //Some text quietly : newey ibm irx spx, lag(3) force outreg2 using "Help_add_F_test" , addstat(`text', `rsqr') adec(2) dta dec(2) tstat
Florent