powered by
Fit a scalar ARMA model by maximum likelihood method.
armafit(y, ar.order, ar = NULL, ma.order, ma = NULL)
innovation variance.
log-likelihood of the model.
AIC of the model.
AR coefficients.
MA coefficients.
a univariate time series.
AR order.
initial AR coefficients. If NULL (default), use default initial values.
NULL
MA order.
initial MA coefficients. If NULL (default), use default initial values.
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
# Sunspot number data data(Sunspot) y <- log10(Sunspot) z <- armafit(y, ar.order = 3, ma.order = 3) z armachar(arcoef = z$arcoef, macoef = z$macoef, v = z$sigma2, lag = 20)
Run the code above in your browser using DataLab