Serving the Quantitative Finance Community

 
User avatar
Muzzex
Topic Author
Posts: 1
Joined: May 2nd, 2003, 10:19 am

Regression with MA errors, Newey-West t statistic

August 29th, 2006, 8:07 am

Hi all!As described in Hamilton 1994 p.610, I do regression on the seriesy_t = a + b*y_(t-1) + e_t, where e_t is a MA(k)-process. Say k=3 as an example.In Hamilton, it says that due to the MA-process, my t statistics should be adjusted with sqrt(S_T^2/lambda^2), where S_T^2 is the standard deviation of the residuals and lambda^2 is given by another formula involving laged residuals.The Hamilton book describes the case when testing for a=0 and b=1 jointly.I want to test a=0 and b=1 individually. In Splus there is an in-built Newey-West correction (which is the described in Hamilton). summary(ols.fit,correction="nw",bandwidth=3)I do this on my ols.fit, but I find that the Newey-West factor that is used to adjust my t statistics are different for the two variables, a and b. How can that be?I can´t see that neither S_T or lambda should be different for the two tests.Could anybody help me out here?muzzex
 
User avatar
markpark
Posts: 0
Joined: October 29th, 2005, 2:07 pm

Regression with MA errors, Newey-West t statistic

September 1st, 2006, 12:07 am

if that functions comes from the add on SplusFinmetrics ( or maybe even if it doesn't ), a good person to ask would be eric zivot or youshould join the Splus Newsgroup. Someone on that list might know but Eric would be the best to ask. i think his email is e.zivot@washington.edu( I use R now but I used to use Splus and SplusFinmetrics heavily ) but you can google him. also, he's a very busy person so it's probably best if you don't say that i recommended him. he gets flooded with questions because he wrote a lot of the econometrics tools that are in Splus and he's a real expert. mark
 
User avatar
bostonquant
Posts: 0
Joined: March 26th, 2006, 7:46 pm

Regression with MA errors, Newey-West t statistic

September 4th, 2006, 1:50 pm

Using R, in the package NLME there is a function called GLS which I use frequently to fit models like this.
Last edited by bostonquant on September 3rd, 2006, 10:00 pm, edited 1 time in total.