robyn_hypsbuilder: Robyn: Generate default hyperparameters

View source: R/robyn.R

robyn_hypsbuilderR Documentation

Robyn: Generate default hyperparameters

Description

Generate a list with hyperparameter default values, ready to be passed to Robyn::robyn_inputs().

Usage

robyn_hypsbuilder(
  channels,
  media_type = "default",
  adstock = "geometric",
  date_type = "weekly",
  lagged = FALSE
)

Arguments

channels

Character vector. Paid media and organic variables names.

media_type

Character vector. Must be length 1 or same as channels. Pick, for every channels value, what type of media it is: "online" or "offline".

adstock

Character. Pick one of: "geometric" or "weibull".

date_type

Character. Pick one of: "daily", "weekly", or "monthly". Only valid to transform thetas when using geometric adstock. Set to "skip" in case you wish to leave default weekly values.

lagged

Boolean vector. Must be length 1 or same as channels. Pick, for every channels value, if you wish to have a lagged effect. Only valid for Weibull adstock.

Value

list with default hyperparameters ranges.

See Also

Other Robyn: robyn_modelselector(), robyn_performance()

Examples

robyn_hypsbuilder(
  channels = c(
    "branded_search_spend",
    "nonbranded_search_spend",
    "print_spend",
    "ooh_spend",
    "tv_spend",
    "radio_spend"
  ),
  media_type = c(
    "online", "online", "offline",
    "offline", "offline", "offline"
  ),
  adstock = "geometric",
  date_type = "weekly"
)

laresbernardo/lares documentation built on Oct. 23, 2024, 12:05 p.m.