Skip to content
Prev 271209 / 398498 Next

Exception in NeweyWest - Pre-Whitening necessary?

On Fri, 9 Sep 2011, Simon Zehnder wrote:

            
This is not reproducible. There is only the script but no information 
about how it is called. Also, within your script you call 
NeweyWest(regression) -- however, "regression" is not defined within the 
script!
NeweyWest call ar() essentially with order.max = as.integer(prewhite) 
which defaults to 1. Thus, the error must be caused by a model with
n.used <= 1 which suggests that it is not a very sensible model to start 
with.
Why don't you read the documentation in ?NeweyWest or in 
vignette("sandwich", package = "sandwich")?
Z