Description Usage Arguments Value Examples
This method implements the predicted value and their standard deviations as a prefixed value.
1 2 3 4 5 6 7 | FixedTSPred(x, VarNames, value = 0L)
## S4 method for signature 'vector'
FixedTSPred(x, VarNames, value = 0L)
## S4 method for signature 'StQList'
FixedTSPred(x, VarNames, value = 0L)
|
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. |
value |
numeric vector with the value for the prediction and the standard deviation. |
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 | # Predicting one and two months ahead in time
data(Example1.TS)
FixedTSPred(Example1.TS, value = 0L)
# Predicting upon a times series with many NA values
data(Example2.TS)
FixedTSPred(Example2.TS, value = 0L)
## Not run:
# With an object of class StQList
data(StQListExample)
VarNames <- c('Personal_07.')
FixedTSPred(StQListExample, VarNames, value = 0L)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.