Usage
pnbd.PlotRecVsConditionalExpectedFrequency(params, cal.cbs, T.star, x.star, xlab = "Calibration period recency", ylab = "Holdout period transactions", xticklab = NULL, title = "Actual vs. Conditional Expected Transactions by Recency")
Arguments
params
Pareto/NBD parameters - a vector with r, alpha, s, and beta, in that order. r and alpha are unobserved parameters for the NBD transaction process. s and beta are unobserved parameters for the Pareto (exponential gamma) dropout process.
cal.cbs
calibration period CBS (customer by sufficient statistic). It must contain columns for frequency ("x"), recency ("t.x"), and total time observed ("T.cal"). Note that recency must be the time between the start of the calibration period and the customer's last transaction, not the time between the customer's last transaction and the end of the calibration period.
T.star
length of then holdout period.
x.star
vector of transactions made by each customer in the holdout period.
xlab
descriptive label for the x axis.
ylab
descriptive label for the y axis.
xticklab
vector containing a label for each tick mark on the x axis.
title
title placed on the top-center of the plot.