Description Usage Arguments Value
Computes absolute error (actual retention rate - predicted retention rate) per cohort and period for given input data. Input data can either be used from the model (only available when trained on data) or provided as a parameter.
1 | absolute_error(model, df_data = NA)
|
model |
sBG model |
df_data |
data frame that contains per cohort and period the survived customers (must have columns 'cohort', 'period' and 'survived_customers'). |
a matrix with absolute errors per cohort (rows) and period (columns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.