Learn R Programming

BTYD (version 2.4.3)

pnbd.PlotRateHeterogeneity: Plot Pareto/NBD Rate Heterogeneity

Description

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).

Usage

pnbd.PlotRateHeterogeneity(params, func, lim = NULL)

Arguments

params

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.

func

A string that is either "pnbd.PlotDropoutRateHeterogeneity" or "pnbd.PlotTransactionRateHeterogeneity".

lim

The upper-bound of the x-axis. A number is chosen by the function if none is provided.

Value

Depending on the value of func, either the distribution of customers' propensities to purchase or the distribution of customers' propensities to drop out.

See Also

pnbd.PlotDropoutRateHeterogeneity

pnbd.PlotTransactionRateHeterogeneity