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

View source: R/explain_forecast.R

reg_forecast_setupR Documentation

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)

Arguments

x

A matrix with the exogenous variables.

horizon

The forecast horizon.

group

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

Value

A list containing

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

  • group The list group with the exogenous groups appended.


NorskRegnesentral/shapr documentation built on April 19, 2024, 1:19 p.m.