Learn R Programming

prophet (version 1.0)

single_cutoff_forecast: Forecast for a single cutoff. Used in cross_validation function when evaluating for multiple cutoffs.

Description

Forecast for a single cutoff. Used in cross_validation function when evaluating for multiple cutoffs.

Usage

single_cutoff_forecast(df, model, cutoff, horizon.dt, predict_columns)

Arguments

df

Dataframe with history for cutoff.

model

Prophet model object.

cutoff

Datetime of cutoff.

horizon.dt

timediff forecast horizon.

predict_columns

Array of names of columns to be returned in output.

Value

Dataframe with forecast, actual value, and cutoff.