predictive_samples: Sample from the posterior predictive distribution.
Description
Sample from the posterior predictive distribution.
Usage
predictive_samples(m, df)
Arguments
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.