Learn R Programming

BTYDplus (version 0.5.0)

bgnbd.GenerateData: Simulate data according to BG/NBD model assumptions

Description

Simulate data according to BG/NBD model assumptions

Usage

bgnbd.GenerateData(n, T.cal, T.star, params, return.elog = FALSE)

Arguments

n

number of customers

T.cal

length of calibration period

T.star

length of holdout period

params

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

return.elog

boolean - if TRUE then the event log is returned in addition to the CBS summary

Value

list with elements cbs and elog containing data.frames