Learn R Programming

BTYDplus (version 0.6.3)

bgcnbd.ExpectedCumulativeTransactions: BG/CNBD-k Expected Cumulative Transactions

Description

Calculates the expected cumulative total repeat transactions by all customers for the calibration and holdout periods.

Usage

bgcnbd.ExpectedCumulativeTransactions(params, T.cal, T.tot, n.periods.final,
  dropout_at_zero = FALSE)

Arguments

params

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

T.cal

a vector to represent customers' calibration period lengths (in other words, the "T.cal" column from a customer-by-sufficient-statistic matrix).

T.tot

end of holdout period. Must be a single value, not a vector.

n.periods.final

number of time periods in the calibration and holdout periods.

dropout_at_zero

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

Value

Vector of expected cumulative total repeat transactions by all customers.

See Also

bgnbd.ExpectedCumulativeTransactions