mbgcnbd.PAlive | R Documentation |
Uses (M)BG/CNBD-k model parameters and a customer's past transaction behavior to return the probability that they are still alive at the end of the calibration period.
mbgcnbd.PAlive(params, x, t.x, T.cal)
bgcnbd.PAlive(params, x, t.x, T.cal)
params |
A vector with model parameters |
x |
Number of repeat transactions in the calibration period T.cal, or a vector of calibration period frequencies. |
t.x |
Recency, i.e. length between first and last transaction during calibration period. |
T.cal |
Length of calibration period, or a vector of calibration period lengths. |
Probability that the customer is still alive at the end of the calibration period.
(M)BG/CNBD-k: Reutterer, T., Platzer, M., & Schroeder, N. (2020). Leveraging purchase regularity for predicting customer behavior the easy way. International Journal of Research in Marketing. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.ijresmar.2020.09.002")}
## Not run:
data("groceryElog")
cbs <- elog2cbs(groceryElog)
params <- mbgcnbd.EstimateParameters(cbs)
palive <- mbgcnbd.PAlive(params, cbs$x, cbs$t.x, cbs$T.cal)
head(palive) # Probability of being alive for first 6 customers
mean(palive) # Estimated share of customers to be still alive
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.