Learn R Programming

prophet (version 1.0)

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