mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-02 23:40:03 +00:00
26 lines
769 B
R
26 lines
769 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/prophet.R
|
|
\name{fit.prophet}
|
|
\alias{fit.prophet}
|
|
\title{Fit the prophet model.}
|
|
\usage{
|
|
fit.prophet(m, df, ...)
|
|
}
|
|
\arguments{
|
|
\item{m}{Prophet object.}
|
|
|
|
\item{df}{Data frame.}
|
|
|
|
\item{...}{Additional arguments passed to the \code{optimizing} or
|
|
\code{sampling} functions in Stan.}
|
|
}
|
|
\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.
|
|
}
|