# NOT RUN {
cbs <- cdnow.sample()$cbs
# short MCMC runs and small sample size to speedup demo
param.draws <- pnbd.mcmc.DrawParameters(cbs,
mcmc = 200, burnin = 100, thin = 20, chains = 1)
# Returns a vector containing cumulative repeat transactions for 546 days.
# All parameters are in weeks; the calibration period lasted 39 weeks
# and the holdout period another 39.
mcmc.ExpectedCumulativeTransactions(param.draws,
T.cal = cbs$T.cal, T.tot = 78, n.periods.final = 78, sample_size = 1000)
# }
Run the code above in your browser using DataLab