Learn R Programming

prophet (version 0.2.1)

predictive_samples: Sample from the posterior predictive distribution.

Description

Sample from the posterior predictive distribution.

Usage

predictive_samples(m, df)

Arguments

m

Prophet object.

df

Dataframe with dates for predictions (column ds), and capacity (column cap) if logistic growth.

Value

A list with items "trend", "seasonal", and "yhat" containing posterior predictive samples for that component. "seasonal" is the sum of seasonalities, holidays, and added regressors.