Learn R Programming

BTYDplus (version 0.7.2)

bgcnbd.PAlive: BG/CNBD-k P(alive)

Description

Uses 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.

Usage

bgcnbd.PAlive(params, x, t.x, T.cal, dropout_at_zero = FALSE)

Arguments

params

BG/CNBD-k parameters - a vector with k, r, alpha, a and b in that order.

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.

dropout_at_zero

Boolean; the mbg-methods are simple wrapper methods, which set this parameter to TRUE

Value

Probability that the customer is still alive at the end of the calibration period.

References

Platzer Michael, and Thomas Reutterer (forthcoming)

See Also

bgcnbd.EstimateParameters

Examples

Run this code
# NOT RUN {
cbs <- cdnow.sample()$cbs # load CDNow summary data
params <- bgcnbd.EstimateParameters(cbs)
palive <- bgcnbd.PAlive(params, cbs$x, cbs$t.x, cbs$T.cal)
mean(palive) # Estimated share of customers to be still alive
# }

Run the code above in your browser using DataLab