R: Simulate observations from the extrapolated generative model.

sample_model {prophet} | R Documentation

## Simulate observations from the extrapolated generative model.

### Description

Simulate observations from the extrapolated generative model.

### Usage

    sample_model(m, df, seasonal.features, iteration, s_a, s_m)

### Arguments

`m` | Prophet object.
`df` | Prediction dataframe.
`seasonal.features` | Data frame of seasonal features
`iteration` | Int sampling iteration to use parameters from.
`s_a` | Indicator vector for additive components
`s_m` | Indicator vector for multiplicative components

### Value

List of trend and yhat, each a vector like df$t.

[Package prophet version 1.0 Index]