Learn R Programming

prophet (version 0.6.1)

fit.prophet: Fit the prophet model.

Description

This sets m$params to contain the fitted model parameters. It is a list with the following elements: k (M array): M posterior samples of the initial slope. m (M array): The initial intercept. delta (MxN matrix): The slope change at each of N changepoints. beta (MxK matrix): Coefficients for K seasonality features. sigma_obs (M array): Noise level. Note that M=1 if MAP estimation.

Usage

fit.prophet(m, df, ...)

Arguments

m

Prophet object.

df

Data frame.

...

Additional arguments passed to the optimizing or sampling functions in Stan.