Learn R Programming

BTYDplus (version 0.4.0)

cbgcnbd.GenerateData: Simulate data according to CBG/CNBD-k model assumptions

Description

Simulate data according to CBG/CNBD-k model assumptions

Usage

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

Arguments

n

number of customers

T.cal

length of calibration period

T.star

length of holdout period

params

CBG/CNBD-k parameters - a vector with 'k', 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