Learn R Programming

BTYDplus (version 0.7.0)

abe.GenerateData: Generate artificial data which follows Abe's Pareto/NBD model variant.

Description

Returns 2-element list * cbs: data.frame with 'cust', x, t.x, T.cal, 'T.star', 'x.star' this is the summary statistics data.frame which contains all needed information for parameter estimation * elog: data.frame with 'cust', t

Usage

abe.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

list of parameters: beta, gamma

return.elog

if TRUE then the event-log is returned as well; decreases performance

Value

2-elemnt list