nbd.EstimateParameters: Parameter Estimation for the NBD model

Description Usage Arguments Value References Examples

View source: R/nbd.R

Description

Estimates parameters for the NBD model via Maximum Likelihood Estimation.

Usage

1
nbd.EstimateParameters(cal.cbs, par.start = c(1, 1), max.param.value = 10000)

Arguments

cal.cbs

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

par.start

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

max.param.value

Upper bound on parameters.

Value

List of estimated parameters.

References

Ehrenberg, A. S. (1959). The pattern of consumer purchases. Journal of the Royal Statistical Society: Series C (Applied Statistics), 8(1), 26-41. doi: 10.2307/2985810

Examples

1
2
3
data("groceryElog")
cbs <- elog2cbs(groceryElog)
nbd.EstimateParameters(cbs)

Example output

       r    alpha 
0.350372 5.821382 

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