Learn R Programming

prophet (version 1.0)

regressor_column_matrix: Dataframe indicating which columns of the feature matrix correspond to which seasonality/regressor components.

Description

Includes combination components, like 'additive_terms'. These combination components will be added to the 'modes' input.

Usage

regressor_column_matrix(m, seasonal.features, modes)

Arguments

m

Prophet object.

seasonal.features

Constructed seasonal features dataframe.

modes

List with keys 'additive' and 'multiplicative' with arrays of component names for each mode of seasonality.

Value

List with items component.cols: A binary indicator dataframe with columns seasonal components and rows columns in seasonal.features. Entry is 1 if that column is used in that component. modes: Updated input with combination components.