bgnbd_expectation | R Documentation |
Computes the expected number of repeat transactions in the interval (0, vT_i] for a randomly selected customer, where 0 is defined as the point when the customer came alive.
bgnbd_nocov_expectation(r, alpha, a, b, vT_i)
bgnbd_staticcov_expectation(r, vAlpha_i, vA_i, vB_i, vT_i)
r |
shape parameter of the Gamma distribution of the purchase process |
alpha |
scale parameter of the Gamma distribution of the purchase process |
a |
shape parameter of the Beta distribution of the lifetime process |
b |
shape parameter of the Beta distribution of the lifetime process |
vT_i |
Number of periods since the customer came alive |
vAlpha_i |
Vector of individual parameters alpha |
vA_i |
Vector of individual parameters a |
vB_i |
Vector of individual parameters b |
Returns the expected transaction values according to the chosen model.
Fader PS, Hardie BGS, Lee KL (2005). ““Counting Your Customers” the Easy Way: An Alternative to the Pareto/NBD Model” Marketing Science, 24(2), 275-284.
Fader PS, Hardie BGS (2013). “Overcoming the BG/NBD Model's #NUM! Error Problem” URL http://brucehardie.com/notes/027/bgnbd_num_error.pdf.
Fader PS, Hardie BGS (2007). “Incorporating time-invariant covariates into the Pareto/NBD and BG/NBD models.” URL http://www.brucehardie.com/notes/019/time_invariant_covariates.pdf.
Fader PS, Hardie BGS, Lee KL (2007). “Creating a Fit Histogram for the BG/NBD Model” URL https://www.brucehardie.com/notes/014/bgnbd_fit_histogram.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.