predict.statespace {viking} | R Documentation |
Predict using a statespace object
Description
predict.statespace
makes a prediction for a statespace object, in the offline or online
setting.
Usage
## S3 method for class 'statespace'
predict(
object,
newX,
newy = NULL,
online = TRUE,
compute_smooth = FALSE,
type = c("mean", "proba", "model"),
...
)
Arguments
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 |
Value
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'