mbgcnbd.Expectation: (M)BG/CNBD-k Expectation

Description Usage Arguments Details Value References Examples

View source: R/mbg-cnbd-k.R

Description

Returns the number of repeat transactions that a randomly chosen customer (for whom we have no prior information) is expected to make in a given time period, i.e. E(X(t) | k, r, alpha, a, b).

Usage

1
2
3

Arguments

params

A vector with model parameters k, r, alpha, a and b, in that order.

t

Length of time for which we are calculating the expected number of repeat transactions.

Details

Note: Computational time increases with the number of unique values of t.

Value

Number of repeat transactions a customer is expected to make in a time period of length t.

References

(M)BG/CNBD-k: Reutterer, T., Platzer, M., & Schroeder, N. (2020). Leveraging purchase regularity for predicting customer behavior the easy way. International Journal of Research in Marketing. doi: 10.1016/j.ijresmar.2020.09.002

Examples

1
2
3
4
5
6
7
## Not run: 
data("groceryElog")
cbs <- elog2cbs(groceryElog)
params <- mbgcnbd.EstimateParameters(cbs)
mbgcnbd.Expectation(params, t = c(26, 52))

## End(Not run)

Example output

      26       52 
2.228859 3.740498 

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