customer_rates: Customer performance rates

Description Usage Arguments Value

View source: R/customer_performance.R

Description

customer_rates calculates churn, retention and survival rate using the parameters from model input for periods between start_period and end_period.

Usage

1
2
customer_rates(model, start_period, end_period, metrics = c("churn",
  "retention", "survival"))

Arguments

model

a sBG model

start_period

a number denoting the period to start calculation from

end_period

a number denoting the period to end calculation at

metrics

vector with customer performance rate to compute. Default is a vector contain all three rates ('churn', 'retention' and 'survival').

Value

a data frame with column period and given customer performance rate


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