[R] Testing autocorrelation & heteroskedasticity of residuals in ts

Vito Ricci vito_ricci at yahoo.com
Wed Jul 21 09:34:42 CEST 2004


I'm dealing with time series. I usually use stl() to
estimate trend, stagionality and residuals. I test for
normality of residuals using shapiro.test(), but I
can't test for autocorrelation and heteroskedasticity.
Is there a way to perform Durbin-Watson test and
Breusch-Pagan test (or other simalar tests) for time
I find dwtest() and bptest() in the package lmtest,
but it requieres an lm object, while I've a ts object.
Any help will be appreciated.

Diventare costruttori di soluzioni

Visitate il portale http://www.modugno.it/
e in particolare la sezione su Palese http://www.modugno.it/archivio/cat_palese.shtml

More information about the R-help mailing list