Learn R Programming

BTYDplus (version 0.7.2)

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

Description

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

Usage

bgcnbd.LL(params, x, t.x, T.cal, litt, dropout_at_zero = FALSE)

Arguments

params

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

dropout_at_zero

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

Value

a vector of log-likelihoods

References

Platzer Michael, and Thomas Reutterer (forthcoming)

See Also

bgcnbd.cbs.LL