sample_model: Simulate observations from the extrapolated generative model.

Description Usage Arguments Value

View source: R/prophet.R

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 Dec. 21, 2018, 5:05 p.m.