Hi guyz,

I have run my algorithm in R (see http://pastebin.com/q84Tujfg) and got the 
following error: 

Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action,  :
  'order.max' must be < 'n.used'

I am pretty sure, that the error comes from the NeweyWest function in line 45, 
as the NeweyWest function uses the ar.ols() function for pre whitening. Does 
anyone has an idea how to circumvent this? Can I just shut off pre whitening?

I am thankful for every suggestion. 

Simon


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to