prophet/R/man/predictive_samples.Rd

23 lines
645 B
Text
Raw Normal View History

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prophet.R
\name{predictive_samples}
\alias{predictive_samples}
\title{Sample from the posterior predictive distribution.}
\usage{
predictive_samples(m, df)
}
\arguments{
\item{m}{Prophet object.}
\item{df}{Dataframe with dates for predictions (column ds), and capacity
(column cap) if logistic growth.}
}
\value{
2017-07-05 00:42:58 +00:00
A list with items "trend", "seasonal", and "yhat" containing
2017-08-30 23:17:41 +00:00
posterior predictive samples for that component. "seasonal" is the sum
of seasonalities, holidays, and added regressors.
}
\description{
Sample from the posterior predictive distribution.
}