lift_test#

Lift test functions for the MMM.

Functions

add_lift_measurements_to_likelihood(...[, ...])

Add lift measurements to the likelihood of the model.

add_logistic_empirical_lift_measurements_to_likelihood(...)

Add empirical lift measurements to the likelihood of the model.

add_menten_empirical_lift_measurements_to_likelihood(...)

Add empirical lift measurements to the likelihood of the model.

calculate_lift_measurements_from_curve(...)

Calculate the lift measurements at two spends.

index_variable(var_dims, var, indices)

Index the TensorVariable based on the required lift test indices.

indices_from_lift_tests(df_lift_test, model, ...)

Get the indices of the lift test results in the model.

lift_test_indices(df_lift_test, model)

Get the indices of the lift test results in the model.

required_dims_from_named_vars_to_dims(...)

Get the required dimensions from a named_vars_to_dims dictionary.

scale_channel_lift_measurements(...)

Scale the lift measurements for a specific channel.

scale_lift_measurements(df_lift_test, ...)

Scale the DataFrame with lift test results to be used in the model.

scale_target_for_lift_measurements(target, ...)

Scale the target for the lift measurements.

Exceptions

MissingLiftTestError(missing_values)