Learn R Programming

BTYDplus (version 0.7.2)

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

Description

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.

Usage

mbgcnbd.PAlive(params, x, t.x, T.cal)

bgcnbd.PAlive(params, x, t.x, T.cal)

Arguments

params

A vector with model parameters 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.

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

Examples

Run this code
# NOT RUN {
cbs <- cdnow.sample()$cbs # load CDNow summary data
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
# }

Run the code above in your browser using DataLab