prediction_data: Create prediction data

Description Usage Arguments Details Value Examples

View source: R/prediction-data.R

Description

[Experimental]

Usage

1
prediction_data(model_data, key, index, ...)

Arguments

model_data

data used in the model

key

new key

index

new index

...

any other variables you want to create an example dataset of

Details

Create prediction data that has the same index and key as the model data for use in prediction.

Value

tsibble object with the same index and key as model_data.

Examples

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
 )

njtierney/yahtsee documentation built on Feb. 5, 2022, 8:25 p.m.