gg_LL | R Documentation |
Calculates the Log-Likelihood value for the Gamma-Gamma model.
gg_LL(vLogparams, vX, vM_x, vN)
vLogparams |
a vector containing the log of the parameters p, q, gamma |
vX |
frequency vector of length n counting the numbers of purchases |
vM_x |
the observed average spending for every customer during the calibration time. |
vN |
The value ("number of times observed") with which the LL value of this observation is multiplied before summing across customers. |
vLogparams
is a vector with the parameters for the Gamma-Gamma model.
It has three parameters (p, q, gamma). The scale parameter for each transaction
is distributed across customers according to a gamma distribution with
parameters q (shape) and gamma (scale).
Returns the Log-Likelihood value for the Gamma-Gamma model.
Colombo R, Jiang W (1999). “A stochastic RFM model.” Journal of Interactive Marketing, 13(3), 2-12.
Fader PS, Hardie BG, Lee K (2005). “RFM and CLV: Using Iso-Value Curves for Customer Base Analysis.” Journal of Marketing Research, 42(4), 415-430.
Fader PS, Hardie BG (2013). “The Gamma-Gamma Model of Monetary Value.” URL http://www.brucehardie.com/notes/025/gamma_gamma.pdf.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.