Learn R Programming

BTYDplus (version 0.7.2)

mbgcnbd.pmf: (M)BG/CNBD-k Probability Mass Function

Description

Uses (M)BG/CNBD-k model parameters to return the probability distribution of purchase frequencies for a random customer in a given time period, i.e. \(P(X(t)=x|r,alpha,a,b)\).

Usage

mbgcnbd.pmf(params, t, x)

bgcnbd.pmf(params, t, x)

Arguments

params

A vector with model parameters k, r, alpha, a and b, in that order.

t

Length end of time period for which probability is being computed. May also be a vector.

x

Number of repeat transactions for which probability is calculated. May also be a vector.

Value

\(P(X(t)=x|r,alpha,a,b)\). If either t or x is a vector, then the output will be a vector as well. If both are vectors, the output will be a matrix.

References

Platzer Michael, and Thomas Reutterer (forthcoming)

See Also

bgcnbd.pmf

Examples

Run this code
# NOT RUN {
cbs <- cdnow.sample()$cbs # load CDNow summary data
params <- mbgcnbd.EstimateParameters(cbs)
mbgcnbd.pmf(params, t = c(26, 52), x = 0:6)
mbgcnbd.pmf(params, t = 52, x = 0:6)
# }

Run the code above in your browser using DataLab