nbd.cbs.LL: Calculate the log-likelihood of the NBD model

Description Usage Arguments Value Examples

View source: R/nbd.R

Description

Calculate the log-likelihood of the NBD model

Usage

1
nbd.cbs.LL(params, cal.cbs)

Arguments

params

NBD parameters - a vector with r and alpha, in that order.

cal.cbs

Calibration period CBS. It must contain columns for frequency x and total time observed T.cal.

Value

The total log-likelihood for the provided data.

Examples

1
2
3
4
data("groceryElog")
cbs <- elog2cbs(groceryElog)
params <- nbd.EstimateParameters(cbs)
nbd.cbs.LL(params, cbs)

BTYDplus documentation built on Jan. 21, 2021, 5:10 p.m.