sample_model: Simulate observations from the extrapolated generative model.

Description Usage Arguments Value

Description

Simulate observations from the extrapolated generative model.

Usage

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


prophet documentation built on March 30, 2021, 5:05 p.m.