View source: R/ARIMA-trellis.R
npar.arma | R Documentation |
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.
npar.arma(x, arima=FALSE)
npar.sarma(model, arima=FALSE)
npar.rarma(arma, arima=FALSE)
x |
An |
model |
A |
arma |
A |
arima |
Logical. |
A scalar number giving the count.
Richard M. Heiberger (rmh@temple.edu)
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.