scoring
1Fpi3rq
1Fpi3rq
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
22 bgbb.PlotRecVsConditionalExpectedFrequency<br />
bgbb.PlotFreqVsConditionalExpectedFrequency(est.params, n.star, rf.matrix, x.star, trunc=6)<br />
bgbb.PlotRecVsConditionalExpectedFrequency<br />
BG/BB Plot Recency vs Conditional Expected Frequency<br />
Description<br />
Usage<br />
Plots the actual and conditional expected number of transactions made by customers in the holdout<br />
period, binned according to calibration period recencies. Also returns a matrix with this comparison<br />
and the number of customers in each bin.<br />
bgbb.PlotRecVsConditionalExpectedFrequency(params, n.star, rf.matrix, x.star,<br />
trunc = NULL, xlab = "Calibration period recency",<br />
ylab = "Holdout period transactions", xticklab = NULL,<br />
title = "Conditional Expected Transactions by Recency")<br />
Arguments<br />
params<br />
n.star<br />
rf.matrix<br />
x.star<br />
BG/BB parameters - a vector with alpha, beta, gamma, and delta, in that order.<br />
Alpha and beta are unobserved parameters for the beta-Bernoulli transaction<br />
process. Gamma and delta are unobserved parameters for the beta-geometric<br />
dropout process.<br />
number of transaction opportunities in the holdout period.<br />
recency-frequency matrix. It must contain columns for frequency ("x"), recency<br />
("t.x"), number of transaction opportunities in the calibration period ("n.cal"),<br />
and the number of customers with this combination of recency, frequency and<br />
transaction opportunities in the calibration period ("custs"). Note that recency<br />
must be the time between the start of the calibration period and the customer’s<br />
last transaction, not the time between the customer’s last transaction and the end<br />
of the calibration period.<br />
a vector containing the number of transactions made in the holdout period by<br />
the groups of customers with the same recency and frequency in the calibration<br />
period. It must be in the same order as the rf.matrix.<br />
trunc optional integer used to truncate the plot. In the plot, all calibration period<br />
frequencies above the truncation number will be removed. If the truncation<br />
number is greater than the maximum frequency, R will warn you and change it<br />
to the maximum frequency.<br />
xlab<br />
ylab<br />
xticklab<br />
title<br />
descriptive label for the x axis.<br />
descriptive label for the y axis.<br />
vector containing a label for each tick mark on the x axis.<br />
title placed on the top-center of the plot.