Learn R Programming

shapr (version 1.0.4)

reg_forecast_setup: Set up exogenous regressors for explanation in a forecast model.

Description

Set up exogenous regressors for explanation in a forecast model.

Usage

reg_forecast_setup(x, horizon, group)

Value

A list containing

  • fcast A matrix containing the exogenous observations needed for each observation.

  • group The list group with the exogenous groups appended.

Arguments

x

A matrix with the exogenous variables.

horizon

Numeric. The forecast horizon to explain. Passed to the predict_model function.

group

The list of endogenous groups, to append exogenous groups to.