arma.loop: Loop through a series of ARIMA models and display coordinated...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ARIMA-trellis.R

Description

Loop through a series of ARIMA models and display coordinated tables and diagnostic graphs. The complete example from the Heiberger and Teles article, also included in the Heiberger and Holland book, is illustrated.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
arma.loop(x,
          model,             ## S-Plus
          order, seasonal,   ## R
          series=deparse(substitute(x)), ...)

diag.arma.loop(z,
               x=stop("The time series x is needed in S-Plus when p=q=0."),
               lag.max = 36, gof.lag = lag.max)

rearrange.diag.arma.loop(z)

Arguments

x

Time series vector. In S-Plus, x must be an "rts".

model

A valid S-Plus model for arima.mle.

order, seasonal

A valid R order and seasonal for arima.

series

Character string describing the time series.

...

Additional arguments for arima.mle or arima.

z

For diag.arma.loop, an "arma.loop" object. For rearrange.diag.arma.loop, an "diag.arma.loop" object.

lag.max

Maximum lag for the acf and pacf plots.

gof.lag

Maximum lag for the gof plots.

Details

S-Plus and R have different functions, with different input argument names and different components in their value.

Value

arma.loop: "arma.loop" object which is a matrix of lists, each containing an arima model.

diag.arma.loop: "diag.arma.loop" object which is a matrix of lists, each containing the standard diagnostics for one arima model.

rearrange.diag.arma.loop: List of matrices, each containing all the values for a specific diagnostic measure collected from the set of arima models.

Author(s)

Richard M. Heiberger (rmh@temple.edu)

References

"Displays for Direct Comparison of ARIMA Models" The American Statistician, May 2002, Vol. 56, No. 2, pp. 131-138. Richard M. Heiberger, Temple University, and Paulo Teles, Faculdade de Economia do Porto.

Heiberger, Richard M. and Holland, Burt (2015). Statistical Analysis and Data Display: An Intermediate Course with Examples in R. Second Edition. Springer-Verlag, New York. https://www.springer.com/us/book/9781493921218

See Also

tsdiagplot

Examples

1
## see tsdiagplot for the example

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

Loading required package: gridExtra

HH documentation built on Nov. 28, 2020, 9:06 a.m.

Related to arma.loop in HH...