Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72795

Add F-test to Newey-West

$
0
0
Hi,

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
Can anyone help me with that? Thanks!

Florent

Viewing all articles
Browse latest Browse all 72795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>