powered by
Fit a univariate AR model by the Yule-Walker method, the least squares (Householder) method or the PARCOR method.
arfit(y, lag = NULL, method = 1, plot = TRUE, ...)
An object of class "arfit" which has a plot method. This is a list with the following components:
"arfit"
plot
innovation variance.
order of minimum AIC.
AICs of the estimated AR models.
AR coefficients of the estimated AR models.
PARCOR.
power spectrum (in log scale) of the AIC best AR model.
the name of the univariate time series y.
y
a univariate time series.
highest order of AR model. Default is \(2 \sqrt{n}\), where \(n\) is the length of the time series y.
estimation procedure.
logical. If TRUE (default), PARCOR, AIC and power spectrum are plotted.
TRUE
graphical arguments passed to the plot method.
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
# Sunspot number data data(Sunspot) arfit(log10(Sunspot), lag = 20, method = 1) # BLSALLFOOD data data(BLSALLFOOD) arfit(BLSALLFOOD)
Run the code above in your browser using DataLab