Calculate and plot marginal performance of any spend or organic variable.
Value
list with base and marginal response results, marginal performance metric and value, and plot.
See also
Other Robyn:
robyn_hypsbuilder()
,
robyn_modelselector()
,
robyn_performance()
Examples
if (FALSE) { # \dontrun{
# You may load an exported model to recreate Robyn objects
mod <- Robyn::robyn_recreate(json_file = "your_model.json")
robyn_marginal(
InputCollect = mod$InputCollect,
OutputCollect = mod$OutputCollect,
metric_name = "emails_O",
metric_value = 100000,
date_range = "all",
marginal_unit = 10000000)
} # }