Learn R Programming

BTYDplus (version 0.6.3)

bgcnbd.GenerateData: Simulate data according to BG/CNBD-k model assumptions

Description

Simulate data according to BG/CNBD-k model assumptions

Usage

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

Arguments

n

number of customers

T.cal

length of calibration period

T.star

length of holdout period

params

BG/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

dropout_at_zero

Boolean; the mbg-methods are simple wrapper methods, which set this parameter to TRUE

Value

list with elements cbs and elog containing data.frames

References

Platzer Michael, and Thomas Reutterer (forthcoming)

See Also

bgcnbd.EstimateParameters