Skip to content
Prev 295869 / 398503 Next

Arima model, breusch godfrey/breusch pagan test

On Mon, 28 May 2012, and_mue wrote:

            
The bgtest() and bptest() functions from package "lmtest" expect a fitted 
"lm" object. To apply them to the residuals of another model you can fit a 
simple constant-only model:

m <- lm(residuals(absi.arima) ~ 1)
bgtest(m)

It would probably be more common to consider Box-type tests as conducted 
by tsdiag(absi.arima).

hth,
Z