View source: R/predict-statespace.R
predict.statespace | R Documentation |
predict.statespace
makes a prediction for a statespace object, in the offline or online
setting.
## S3 method for class 'statespace'
predict(
object,
newX,
newy = NULL,
online = TRUE,
compute_smooth = FALSE,
type = c("mean", "proba", "model"),
...
)
object |
the statespace object |
newX |
the design matrix in the prediction set |
newy |
(default |
online |
(default |
compute_smooth |
(default |
type |
type of prediction. Can be either
|
... |
additional parameters |
Depending on the type specified, the result is
- a vector of mean forecast if type='mean'
- a list of two vectors, mean forecast and standard deviations if type='proba'
- a statespace object if type='model'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.