Learn R Programming

prophet (version 1.0)

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" and "yhat" containing posterior predictive samples for that component.