Description Usage Arguments Details Value Author(s) See Also

View source: R/ts.seasonal.model.R

Model fit of seasonal time series

1 | ```
ts.seasonal.model(tsdata, x.ord = NULL, tojson = FALSE)
``` |

`tsdata` |
The input univariate seasonal time series data |

`x.ord` |
An integer vector of length 3 specifying the order of the Arima model |

`tojson` |
If TRUE the results are returned in json format, default returns a list |

Model fit of seasonal time series using arima models of seasonal time series data. The model with the lowest AIC value is selected for forecasts.

A list with the following components:

model.summary:

ts_model The summary model details returned as Arima object for internal use in ts.analysis function

model:

ts_model

arima.order The Arima order

arima.coef A vector of AR, MA and regression coefficients

arima.coef.se The standard error of the coefficients

residuals_fitted:

residuals The residuals of the model (fitted innovations)

fitted The model's fitted values

time the time of tsdata

line The y=0 line

compare:

variance.coef The matrix of the estimated variance of the coefficients

resid.variance The MLE of the innovations variance

not.used.obs The number of not used observations for the fitting

used.obs the number of used observations for the fitting

loglik The maximized log-likelihood (of the differenced data), or the approximation to it used

aic The AIC value corresponding to the log-likelihood

bic The BIC value corresponding to the log-likelihood

aicc The second-order Akaike Information Criterion corresponding to the log-likelihood

Kleanthis Koupidis

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.