pnbd.PlotRateHeterogeneity: Plot Pareto/NBD Rate Heterogeneity

Description Usage Arguments Value See Also

View source: R/pnbd.R

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

1
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


BTYD documentation built on Nov. 18, 2021, 1:10 a.m.