bgnbd.generalParams {BTYD} | R Documentation |
Define general parameters
Description
This is to ensure consistency across all functions that require common bits and bobs.
Usage
bgnbd.generalParams(params, func, x, t.x, T.cal, T.star = NULL, hardie = NULL)
Arguments
params |
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. |
func |
function calling dc.InputCheck |
x |
number of repeat transactions in the calibration period T.cal, or a vector of transaction frequencies. |
t.x |
time of most recent repeat transaction, or a vector of recencies. |
T.cal |
length of calibration period, or a vector of calibration period lengths. |
T.star |
length of time for which we are calculating the expected number of transactions. |
hardie |
if TRUE, use |
Value
a list with things you need for bgnbd.LL
,
bgnbd.PAlive
and
bgnbd.ConditionalExpectedTransactions
See Also
bgnbd.ConditionalExpectedTransactions