Description Usage Arguments Details Value Examples
View source: R/prediction-data.R
1 | prediction_data(model_data, key, index, ...)
|
model_data |
data used in the model |
key |
new key |
index |
new index |
... |
any other variables you want to create an example dataset of |
Create prediction data that has the same index and key as the model data for use in prediction.
tsibble
object with the same index and key as model_data
.
1 2 3 4 5 6 7 8 9 | date_range <- clock::date_build(2019, 2, 1:5)
date_range
countries <- c("Ethiopia", "Tanzania")
countries
prediction_data(
model_data = malaria_africa_ts,
key = countries,
index = date_range
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.