tsdiag.carx: Show diagnostic plots for a 'carx' object

Description Usage Arguments Value Examples

View source: R/carx_plots.R

Description

Four diagnostic plots will be shown, which are

Usage

1
2
3
## S3 method for class 'carx'
tsdiag(object, gof.lag, col = "red", omit.initial = TRUE,
  mfrow = c(4, 1), main = "Diagnostic Plots from Simulated Residuals", ...)

Arguments

object

a carx object.

gof.lag

the maximum number of lags in ACF and Ljung-Box goodness-of-fit test.

col

color of some warning lines in the figures, default=red.

omit.initial

whether initial residuals should be omitted, default = TRUE.

mfrow

par parameter indicating how the plots are to be arranged, default = c(4,1).

main

The main title of the plot, default = "Diagnostic Plots".

...

Other arguments sent to plot.

Value

none.

Examples

1
2
3
dat = carxSim(nObs=100,seed=0)
mdl <- carx(y~X1+X2-1,data=dat, p=2, CI.compute = FALSE)
tsdiag(mdl)

carx documentation built on May 2, 2019, 3:43 a.m.

Related to tsdiag.carx in carx...