Description Usage Arguments Value Examples
This method implements the predicted value and their standard deviation according to an ARIMA model.
1 2 3 4 5 6 7 8 9 | AutoArimaTSPred(x, VarNames, frequency = 12L, forward = 2L)
## S4 method for signature 'vector'
AutoArimaTSPred(x, VarNames, frequency = 12L,
forward = 2L)
## S4 method for signature 'StQList'
AutoArimaTSPred(x, VarNames, frequency = 12L,
forward = 2L)
|
x |
object upon which the prediction will be made. |
VarNames |
character vector with the variable names for which the prediction will be made; by default it is NULL. |
frequency |
integer indicating the frequency of time series; by default it is 12L. |
forward |
integer indicating the number of periods ahead when the prediction will be made; by default it is 2L. |
It returns a data.table
with components Pred and STD, containing the point
prediction and the estimated standard deviations, respectively, for each variable.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Predicting one and two months ahead in time
data(Example1.TS)
AutoArimaTSPred(Example1.TS, forward = 1L)
AutoArimaTSPred(Example1.TS, forward = 2L)
# Predicting upon a times series with many NA values
data(Example2.TS)
AutoArimaTSPred(Example2.TS, forward = 1L)
## Not run:
# With an object of class StQList
data(StQListExample)
VarNames <- c('ActivEcono_35._6._2.1.4._0', 'GeoLoc_35._6._2.1._1.2.5.')
AutoArimaTSPred(StQListExample, VarNames)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.