robyn_marginal {lares} | R Documentation |
Robyn: Marginal Performance (mROAS & mCPA) [Experimental]
Description
Calculate and plot marginal performance of any spend or organic variable.
Usage
robyn_marginal(..., marginal_unit = 1)
Arguments
... |
Additional parameters. |
marginal_unit |
Additional units to calculate the marginal performance. |
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
## 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)
[Package lares version 5.3.1 Index]