Learn R Programming

BTYDplus (version 0.4.0)

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

Description

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

Usage

cbgcnbd.LL(params, x, t.x, T.cal, litt)

Arguments

params

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

x

frequency, i.e. number of re-purchases

t.x

recency, i.e. time elapsed from first purchase to last purchase

T.cal

total time of observation period

litt

sum of logarithmic interpurchase times

Value

a vector of log-likelihoods

See Also

cbgcnbd.EstimateParameters