Usage
bgbb.PlotFrequencyInHoldout(params, n.cal, rf.matrix.holdout, censor = NULL, plotZero = TRUE, title = "Frequency of Repeat Transactions", xlab = "Holdout period transactions", ylab = "Customers")
Arguments
params
BG/BB parameters - a vector with alpha, beta, gamma, and delta, in that order. Alpha and beta are unobserved parameters for the beta-Bernoulli transaction process. Gamma and delta are unobserved parameters for the beta-geometric dropout process.
n.cal
number of transaction opportunities in the calibration period.
rf.matrix.holdout
holdout period recency-frequency
matrix. It must contain columns for frequency in the holdout
period ("x.star"), the number of transaction opportunities in the
holdout period ("n.star"), and the number of customers with each
frequency ("custs").
censor
optional. Any calibration period frequency at this
number, or above it, will be binned together. If the censor number
is greater than the maximum recency in the recency-frequency
matrix, the maximum recency will be used as the censor number.
plotZero
If FALSE, the histogram will exclude the zero bin.
title
title placed on the top-center of the plot.
xlab
descriptive label for the x axis.
ylab
descriptive label for the y axis.