A helper for plotting either the estimated gamma distribution of mu (customers' propensities to drop out), or the estimated gamma distribution of lambda (customers' propensities to purchase).
pnbd.PlotRateHeterogeneity(params, func, lim = NULL)
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.
A string that is either "pnbd.PlotDropoutRateHeterogeneity" or "pnbd.PlotTransactionRateHeterogeneity".
The upper-bound of the x-axis. A number is chosen by the function if none is provided.
Depending on the value of func
, either the distribution of
customers' propensities to purchase or the distribution of customers'
propensities to drop out.