npar.arma {HH} | R Documentation |
Count the number of parameters in an ARIMA model specification.
Description
Count the number of parameters in an ARIMA model specification.
When arima==FALSE
, just the AR and MA parameters are counted.
When arima==TRUE
, then the number of difference parameters are
also included.
Usage
npar.arma(x, arima=FALSE)
npar.sarma(model, arima=FALSE)
npar.rarma(arma, arima=FALSE)
Arguments
x |
An |
model |
A |
arma |
A |
arima |
Logical. |
Value
A scalar number giving the count.
Author(s)
Richard M. Heiberger (rmh@temple.edu)
Examples
co2.arima <-
if.R(s=
arima.mle(co2, list(list(order=c(0,1,1)),
list(order=c(0,1,1), period=12)))
,r=
arima(co2,
order=c(0,1,1),
seasonal=list(order=c(0,1,1), period=12))
)
npar.arma(co2.arima)
npar.arma(co2.arima, arima=TRUE)
npar.sarma(list(list(order=c(0,1,1)),
list(order=c(0,1,1), period=12)))
npar.sarma(list(list(order=c(0,1,1)),
list(order=c(0,1,1), period=12)),
arima=TRUE)
if.R(s={},
r=npar.rarma(co2.arima$arma)
)
if.R(s={},
r=npar.rarma(co2.arima$arma,
arima=TRUE)
)
[Package HH version 3.1-52 Index]