Learn R Programming

BTYDplus (version 0.7.2)

bgcnbd.cbs.LL: Calculate the log-likelihood of the BG/CNBD-k model

Description

Calculate the log-likelihood of the BG/CNBD-k model

Usage

bgcnbd.cbs.LL(params, cal.cbs, dropout_at_zero = FALSE)

Arguments

params

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

cal.cbs

calibration period CBS. It must contain columns for frequency x, for recency t.x, for sum of logarithmic interpurchase times litt and total time observed T.cal. Optionally a column custs can be provided, which represents number of customers with a specific combination of frequency x and T.cal.

dropout_at_zero

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

Value

the total log-likelihood for the provided data.

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)
bgcnbd.cbs.LL(params, cbs)
# }

Run the code above in your browser using DataLab