| msarima-methods | R Documentation |
Methods for extracting information from and displaying fitted multi-seasonal ARIMA models.
## S3 method for class 'msarima'
print(x, ...)
## S3 method for class 'msarima'
summary(object, ...)
## S3 method for class 'summary_msarima'
print(x, digits = 4, signif.stars = TRUE, ...)
## S3 method for class 'msarima'
coef(object, ...)
## S3 method for class 'msarima'
fitted(object, ...)
## S3 method for class 'msarima'
residuals(object, ...)
## S3 method for class 'msarima'
logLik(object, ...)
## S3 method for class 'msarima'
AIC(object, ...)
## S3 method for class 'msarima'
BIC(object, ...)
x, object |
An object of class |
... |
Additional arguments (currently not used). |
digits |
Number of digits to display. Default is 4. |
signif.stars |
Logical; if |
printPrints a concise summary of the fitted model including coefficients and information criteria.
summaryProduces a detailed summary including coefficient estimates, standard errors, z-values, and p-values.
coefExtracts the estimated model coefficients.
fittedExtracts the fitted values.
residualsExtracts the model residuals.
logLikExtracts the log-likelihood value.
AICCalculates the Akaike Information Criterion.
BICCalculates the Bayesian Information Criterion.
printReturns the input object invisibly.
summaryReturns an object of class "summary_msarima" containing:
call: The matched call.
series: Name of the time series.
order: Non-seasonal ARIMA order.
seasonal: List of seasonal orders (P, D, Q), one vector per
seasonal component.
seasonal.period: Vector of seasonal periods.
coefficients: Matrix with estimates, standard errors, z-values, and p-values.
sigma2: Estimated innovation variance.
loglik: Log-likelihood of the fitted model.
aic: Akaike Information Criterion.
bic: Bayesian Information Criterion.
aicc: Corrected Akaike Information Criterion.
nobs: Number of observations in the original series.
n.used: Number of observations used in estimation.
method: Character string describing the fitted model, e.g.
"mSARIMA(1,0,0)(1,0,0)[4]".
convergence: Convergence code from optimization.
coefA named numeric vector of coefficients.
fittedA time series object of fitted values.
residualsA time series object of residuals.
logLikAn object of class "logLik".
AICThe AIC value.
BICThe BIC value.
msarima
# Fit a model
set.seed(123)
y <- msarima.sim(nsim = 200,
order = c(1, 0, 0),
seasonal = list(c(1, 0, 0), c(0, 0, 1)),
seasonal.period = c(4, 11),
ar = c(0.5, 0.5), ma = 0.3, sigma2 = 1)
fit <- msarima(y, order = c(1, 0, 0),
seasonal = list(c(1, 0, 0), c(0, 0, 1)),
seasonal.period = c(4, 11))
# Use methods
print(fit)
summary(fit)
coef(fit)
head(fitted(fit))
head(residuals(fit))
logLik(fit)
AIC(fit)
BIC(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.