The Michaelis-Menten mic_men()
function is used to fit the spend
exposure relationship for paid media variables, when exposure metrics like
impressions, clicks or GRPs are provided in paid_media_vars
instead
of spend metric.
mic_men(x, Vmax, Km, reverse = FALSE)run_transformations(
all_media,
window_start_loc,
window_end_loc,
dt_mod,
adstock,
dt_hyppar,
...
)
Numeric values. Transformed values.
Numeric value or vector. Input media spend when
reverse = FALSE
. Input media exposure metrics (impression, clicks,
GRPs, etc.) when reverse = TRUE
.
Numeric Indicates maximum rate achieved by the system.
Numeric. The Michaelis constant.
Boolean. Input media spend when reverse = FALSE
.
Input media exposure metrics (impression, clicks, GRPs etc.) when reverse = TRUE
.
Character. Vector of all selected paid media variable names.
Integer. Rolling window start location.
Integer. Rolling window end location.
dataframe. Transformed input table for transformation.
Character. Adstock config.
data.frame. All hyperparaters for provided media.
Additional parameters passed to prophet
functions.
Other Transformations:
adstock_geometric()
,
saturation_hill()
mic_men(x = 5:10, Vmax = 5, Km = 0.5)
Run the code above in your browser using DataLab