Description Usage Arguments Value
View source: R/customer_performance.R
customer_rates
calculates churn, retention and survival rate
using the parameters from model input for periods between start_period and end_period.
1 2 | customer_rates(model, start_period, end_period, metrics = c("churn",
"retention", "survival"))
|
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'). |
a data frame with column period and given customer performance rate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.