View source: R/metrics-ratios.R
CustomerChurn | R Documentation |
CustomerChurn
The percentage or number of customers who could churn in a period that did churn.
CustomerChurn(data, ratio = TRUE)
data |
A |
ratio |
If |
The definition of churn is is not the most widely cohort.typed definition. A more common definition is the proportion of customers that churned. These two measures differ in some situations:
Incomplete periods. The traditional metric can only be cohort.typed with completed metrics. This function computes churn for periods that are not yet complete, by using the dat for the customers that were have been up for renewal prior to the point at which the analysis is conducted.
Contracts that extend over multiple subsscription lengths. E.g., a two year contract for a product that typically has a one year subscription. This function ignores such contracts in their first year (as the customer cannot churn). Thus, this function will show a higher churn rate than the more traditional churn.
Contracts that start and end with a subscription-length period. For example, if subscriptions are yearly, and a customer starts on the 1st of Jan and churns on the 30th of December, they will not appear in the churn statistics in the traditional metric. They do appear in the calculations in this function.
Another edge cases is inconsistent contract ends. For example, if a company has a contract that runs from January to March, and another than runs from January to December, the contract ending in March isn't couunted as Churn in this function (but is counted as contraction).
A named vector if cohort.type
is set to "None"
or "Preceding"
, or,
a matrix
. This will contain a number of attributes includeing:
denominator
cohort.typed when ratio
is TRUE
.
numerator
cohort.typed when ratio
is TRUE
.
The detail
cohort.typed when ratio
is TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.