scoring
1Fpi3rq
1Fpi3rq
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
30 bgbb.PosteriorMeanDropoutRate<br />
bgbb.PosteriorMeanDropoutRate<br />
BG/BB Posterior Mean Dropout Rate<br />
Description<br />
Usage<br />
Computes the mean value of the marginal posterior value of Theta, the geometric dropout process<br />
parameter.<br />
bgbb.PosteriorMeanDropoutRate(params, x, t.x, n.cal)<br />
bgbb.rf.matrix.PosteriorMeanDropoutRate(params, rf.matrix)<br />
Arguments<br />
params<br />
x<br />
t.x<br />
n.cal<br />
rf.matrix<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 repeat transactions a customer made in the calibration period, or a<br />
vector of calibration period transaction frequencies.<br />
recency - the last transaction opportunity in which a customer made a transaction,<br />
or a vector of recencies.<br />
number of transaction opportunities in the calibration period, or a vector of calibration<br />
period transaction opportunities.<br />
recency-frequency matrix. It must contain columns for frequency ("x"), recency<br />
("t.x"), and the number of transaction opportunities in the calibration period<br />
("n.cal"). Note that recency must be the time between the start of the calibration<br />
period and the customer’s last transaction, not the time between the customer’s<br />
last transaction and the end of the calibration period.<br />
Details<br />
Value<br />
E(Theta | alpha, beta, gamma, delta, x, t.x, n).<br />
bgbb.PosteriorMeanLmProductMoment.<br />
This is calculated by setting l=0 and m=1 in<br />
x, t.x, and n.cal may be vectors. The standard rules for vector operations apply - if they are not<br />
of the same length, shorter vectors will be recycled (start over at the first element) until they are as<br />
long as the longest vector. It is advisable to keep vectors to the same length and to use single values<br />
for parameters that are to be the same for all calculations. If one of these parameters has a length<br />
greater than one, the output will be also be a vector.<br />
The posterior mean dropout rate.