Learn R Programming

prophet (version 0.2.1)

sample_model: Simulate observations from the extrapolated generative model.

Description

Simulate observations from the extrapolated generative model.

Usage

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

Arguments

m

Prophet object.

df

Prediction dataframe.

seasonal.features

Data frame of seasonal features

iteration

Int sampling iteration to use parameters from.

Value

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