getsm
, getsv
and isat
functions. The diagnostics
function tests for autocorrelation, ARCH and non-normality in a residual series. The autocorrelation and ARCH tests are conducted as Ljung and Box (1979) tests of autocorrelation in the residuals and squared residuals, respectively, whereas the test for non-normality is that of Jarque and Bera (1980)diagnostics(x, s2=1, ar.LjungB=c(1,0.025), arch.LjungB=c(1,0.025),
normality.JarqueB=NULL, verbose=FALSE)
getsm
, getsv
, isat
##check for autocorrelation, ARCH and non-normality:
diagnostics(rnorm(40))
Run the code above in your browser using DataLab