robyn_performance | R Documentation |
Given a date range, calculate specific and total performance and contribution for each of your marketing and non-marketing channels.
robyn_performance(
InputCollect,
OutputCollect,
start_date = NULL,
end_date = NULL,
solID = NULL,
totals = TRUE,
marginals = FALSE,
carryovers = FALSE,
quiet = FALSE,
...
)
InputCollect , OutputCollect |
Robyn output objects. |
start_date , end_date |
Date. Start and end date to filter the data to be reported. |
solID |
Character. Single ID of the model to report. If there's only one available in OutputCollect, no need to define. |
totals |
Boolean. Add total rows. This includes summary rows (promotional which is paid and organic channels, baseline, grand total). |
marginals |
Boolean. Include mROAS or mCPA marginal performance metric
as an additional column called "marginal". Calculations are based on
mean spend and mean response with mean carryover results,
between |
carryovers |
Boolean. Add mean percentage of carryover response for
date range between |
quiet |
Boolean. Keep quiet? If not, message will be shown. |
... |
Additional parameters. |
data.frame with results on ROAS/CPA, spend, response, contribution per channel, with or without total rows.
Other Robyn:
robyn_hypsbuilder()
,
robyn_modelselector()
## Not run:
# You may load an exported model to recreate Robyn objects
mod <- Robyn::robyn_recreate(json_file = "your_model.json")
robyn_performance(mod$InputCollect, mod$OutputCollect)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.