Learn R Programming

prophet (version 0.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
Dataframe that was fit by Prophet.
seasonal.features
Data frame of seasonal features
iteration
Int sampling iteration ot use parameters from.

Value

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