absolute_error: Absolute error

Description Usage Arguments Value

View source: R/diagnostics.R

Description

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.

Usage

1
absolute_error(model, df_data = NA)

Arguments

model

sBG model

df_data

data frame that contains per cohort and period the survived customers (must have columns 'cohort', 'period' and 'survived_customers').

Value

a matrix with absolute errors per cohort (rows) and period (columns)


runtastic/sBGmodel documentation built on Nov. 5, 2019, 4:21 a.m.