robyn_marginal | R Documentation |
Calculate and plot marginal performance of any spend or organic variable.
robyn_marginal(..., marginal_unit = 1)
... |
Additional parameters. |
marginal_unit |
Additional units to calculate the marginal performance. |
list with base and marginal response results, marginal performance metric and value, and plot.
Other Robyn:
robyn_hypsbuilder()
,
robyn_modelselector()
,
robyn_performance()
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.