Learn R Programming

BTYDplus (version 0.5.0)

mbgcnbd.cbs.LL: Calculate the log-likelihood of the MBG/CNBD-k model

Description

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

Usage

mbgcnbd.cbs.LL(params, cal.cbs)

Arguments

params

MBG/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.

Value

the total log-likelihood for the provided data.

See Also

mbgcnbd.EstimateParameters