mbgcnbd.ExpectedCumulativeTransactions | R Documentation |
Calculates the expected cumulative total repeat transactions by all customers for the calibration and holdout periods.
mbgcnbd.ExpectedCumulativeTransactions(params, T.cal, T.tot, n.periods.final)
bgcnbd.ExpectedCumulativeTransactions(params, T.cal, T.tot, n.periods.final)
params |
A vector with model parameters |
T.cal |
A vector to represent customers' calibration period lengths. |
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. |
Note: Computational time increases with the number of unique values of
T.cal
.
Vector of length n.periods.final
with expected cumulative
total repeat transactions by all customers.
## Not run:
data("groceryElog")
cbs <- elog2cbs(groceryElog)
params <- mbgcnbd.EstimateParameters(cbs, k = 2)
# Returns a vector containing expected cumulative repeat transactions for 104
# weeks, with every eigth week being reported.
mbgcnbd.ExpectedCumulativeTransactions(params,
T.cal = cbs$T.cal,
T.tot = 104,
n.periods.final = 104 / 8)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.