Learn R Programming

BTYDplus (version 0.4.0)

cbgcnbd.cbs.LL: Calculate the log-likelihood of the CBG/CNBD-k model

Description

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

Usage

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

Arguments

params

CBG/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

cbgcnbd.EstimateParameters