When prophet_vars
in robyn_inputs()
is specified, this
function decomposes trend, season, holiday and weekday from the
dependent variable.
prophet_decomp(
dt_transform,
dt_holidays,
prophet_country,
prophet_vars,
prophet_signs,
factor_vars,
context_vars,
organic_vars,
paid_media_spends,
paid_media_vars,
intervalType,
dayInterval,
custom_params
)
A list containing all prophet decomposition output.
A data.frame with all model features.
Must contain ds
column for time variable values and
dep_var
column for dependent variable values.
data.frame. Raw input holiday data. Load standard
Prophet holidays using data("dt_prophet_holidays")
As included in InputCollect
Character vector. Typically newsletter sendings,
push-notifications, social media posts etc. Compared to paid_media_vars
organic_vars
are often marketing activities without clear spends.
Character vector. Names of the paid media variables'
exposure level metrics (impressions, clicks, GRP etc) other than spend.
The values on each of these variables must be numeric. These variables are not
being used to train the model but to check relationship and recommend to
split media channels into sub-channels (e.g. fb_retargeting, fb_prospecting,
etc.) to gain more variance. paid_media_vars
must have same
order and length as paid_media_spends
respectively and is not required.
List. Custom parameters passed to prophet()