This is to ensure consistency across all functions that require common bits and bobs.
bgnbd.generalParams(params, func, x, t.x, T.cal, T.star = NULL, hardie = NULL)
BG/NBD parameters - a vector with r, alpha, a, and b, in that order. r and alpha are unobserved parameters for the NBD transaction process. a and b are unobserved parameters for the Beta geometric dropout process.
function calling dc.InputCheck
number of repeat transactions in the calibration period T.cal, or a vector of transaction frequencies.
time of most recent repeat transaction, or a vector of recencies.
length of calibration period, or a vector of calibration period lengths.
length of time for which we are calculating the expected number of transactions.
if TRUE, use h2f1
instead of
hypergeo
when you call this function from within
bgnbd.ConditionalExpectedTransactions
.
a list with things you need for bgnbd.LL
,
bgnbd.PAlive
and
bgnbd.ConditionalExpectedTransactions