# NOT RUN {
data(cdnowSummary)
cal.cbs <- cdnowSummary$cbs
# cal.cbs already has column names required by method
# Cumulative repeat transactions made by all customers across calibration
# and holdout periods
cu.tracking <- cdnowSummary$cu.tracking
# parameters estimated using pnbd.EstimateParameters
est.params <- cdnowSummary$est.params
# All parameters are in weeks; the calibration period lasted 39
# weeks and the holdout period another 39.
pnbd.PlotTrackingCum(params = est.params,
T.cal = cal.cbs[,"T.cal"],
T.tot = 78,
actual.cu.tracking.data = cu.tracking)
# }
Run the code above in your browser using DataLab