View source: R/CADF_to_annualhalfing_model.R
annualhalfingmodel | R Documentation |
A recency-frequency model used in non-contractual situations. Model assumptions: 1.) Increasing recency leads to higher probability of quitting. 2.) Frequency is related to exponential learning curves Reference: Segmentation and Lifetime Value Modeling in SAS (Edward Malthouse)
annualhalfingmodel(cadf.data, starting.values)
cadf.data |
cadf-formatted dataset |
starting.values |
parameter starting values for model |
Returns model parameters
dta <- lapply(CADF::cadf.data.sample, function(x) tail(x$data, 1))
dta <- do.call(rbind, dta)
starting.values <- c(.5,.9,.2,-.9)
annualhalfingmodel(cadf.data.sample, starting.values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.