powered by
carx
Four diagnostic plots will be shown, which are
the time series plot of the residuals,
the residuals versus the fitted values,
the ACF plot of the residuals, and
the Ljung-Box test statistics versus the lags.
# S3 method for carx tsdiag(object, gof.lag, col = "red", omit.initial = TRUE, mfrow = c(4, 1), main = "Diagnostic Plots from Simulated Residuals", ...)
a carx object.
the maximum number of lags in ACF and Ljung-Box goodness-of-fit test.
color of some warning lines in the figures, default=red.
red
whether initial residuals should be omitted, default = TRUE.
TRUE
par parameter indicating how the plots are to be arranged, default = c(4,1).
par
c(4,1)
The main title of the plot, default = "Diagnostic Plots".
Other arguments sent to plot.
plot
none.
# NOT RUN { dat = carxSim(nObs=100,seed=0) mdl <- carx(y~X1+X2-1,data=dat, p=2, CI.compute = FALSE) tsdiag(mdl) # }
Run the code above in your browser using DataLab