Description Usage Arguments Details Value Author(s) See Also Examples
Univariate time series forecasts for short and long time series data using the appropriate model.
1 | ts.forecast(ts_modelx, h = 1, tojson = FALSE)
|
ts_modelx |
The input univariate time series data |
h |
The number of prediction steps |
tojson |
If TRUE the results are returned in json format, default returns a list |
This function is used internally in ts.analysis and forecasts the model that fits the input data using the auto.arima function(see forecast package). The model selection depends on the results of some diagnostic tests (acf,pacf,pp adf and kpss). For short time series the selected arima model is among various orders of the AR part using the first differences and the first order moving average component, with the lower AIC value.
A list with the parameters:
ts.model a string indicating the arima orders
data_year The time that time series data were sampled
data The time series values
predict_time The time that defined by the prediction_steps parameter
predict_values The predicted values that defined by the prediction_steps parameter
up80: The upper limit of the 80% predicted confidence interval
low80: The lower limit of the 80% predicted confidence interval
up95: The upper limit of the 95% predicted confidence interval
low95: The lower limit of the 95% predicted confidence interval
Kleanthis Koupidis, Charalampos Bratsas
1 2 3 4 | Athens_draft <- ts.non.seas.model(Athens_draft_ts)
#Hold the model object of non seasonal modeling
draft <- Athens_draft$model.summary
ts.forecast(draft)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.