All functions |
|
|---|---|
computes variables suitable for seasonality predictors |
|
sorts and groups data per the variable controls table |
|
loops over the variable control table to add media transformations based on either variable specific transformations or tunable ranges |
|
creates a tidymodels workflow from a a recipe and a model |
|
dial (ie from the tune package) for asymptote |
|
bake method for step_adstock |
|
The saturation bake method |
|
loops over the variable control table to assign second rolls within a recipe. These roles control transformations applied and construction of model formulas |
|
loops over the variable control table to assign roles within a recipe. These roles control transformations applied and construction of model formulas |
|
check to see if a recipe needs to be finalized before baking |
|
Creates a string that represents a model formula from a recipe and the workflow controls data |
|
reads the variable controls configuration and dataset to create a recipe, which may include tuning dials |
|
From a combination of arguments and the user specified priors, creates the final list of expressions that rethinking::ulam uses to build the stan model block. Currently only allows additive normal model with all media transformations applied before the regression is run. Currently only allows for random intercepts. |
|
function used to compute adstock transformation |
|
Pulls values from the control tibble by name; convenience function for working with the control tibble. |
|
get decomps agnostic to multiplicative or additive model specification |
|
pulls vector of identification variables from recipe using role== group or role==time_id |
|
pulls outcome variable from recipe using role== group or role==time_id |
|
pulls predictor variable names from a recipe except those that have role2 %in% c('group','time') |
|
a monotonic saturation function with monotonic first deriviate used in recipes for preprocssing MMM data |
|
converts sign constraints in the variable configuration table to rethinking::ulam ready constraints. |
|
create a list of model formula (per the rules for lmer()) with different seasonality specifications as listed in the configuration tibble. |
|
produce a list of formula for testing combinations of random effects |
|
Creates sampling statements for user defined priors on individual variables. |
|
a prediction function for ulam objects, as comes from rethinking::ulam |
|
Prep method for step_adstock |
|
The saturation step prep method |
|
custom print method for adstock steps |
|
print method for saturation steps |
|
renames columns in data per the controls file |
|
establishing retention as a dial using new_quant_param |
|
dial (ie from the tune package) for saturation_speed |
|
function to add saturation trasnformations to a recipe |
|
internal function used in create recipe steps |
|
function to add saturation trasnformations to a recipe |
|
internal function used in create recipe steps |
|
tunable method for step_adstock |
|
tunable method for saturation steps -- used by tune package to identify what each hyperparameter is. |
|