R: Sample from the posterior predictive distribution.

predictive_samples {prophet} | R Documentation

## 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.

[Package prophet version 0.6.1 Index]