predict_models: predict_models - calculate forecasts

Description Usage Arguments Value

View source: R/fct_model.R

Description

A function that returns a list of forecasts for the input model fits.

Usage

1
predict_models(model_fits, proj_data = NULL, n_periods_to_forecast = 4)

Arguments

model_fits

list of model fit objects to use in forecast. Can use fit_models() to calculate these.

proj_data

if linear regression model is included in model_fits, this data frame is required, containing projected data to use in the forecast

n_periods_to_forecast

integer - number of periods to forecast forward. Default is 4 periods.

Value

data frame containing predictions/forecasts for multiple models


saralsmith/SHIFT documentation built on Feb. 7, 2021, 5:48 p.m.