bgnbd.PlotTransactionRateHeterogeneity: BG/NBD Plot Transaction Rate Heterogeneity

Description Usage Arguments Details Value Examples

View source: R/bgnbd.R

Description

Plots and returns the estimated gamma distribution of lambda (customers' propensities to purchase).

Usage

1

Arguments

params

BG/NBD parameters - a vector with r, alpha, a, and b, in that order. r and alpha are unobserved parameters for the NBD transaction process. a and b are unobserved parameters for the Beta geometric dropout process.

lim

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

Details

This returns the distribution of each customer's Poisson parameter, which determines the level of their purchasing.

Value

Distribution of customers' propensities to purchase.

Examples

1
2
3
4
params <- c(0.243, 4.414, 0.793, 2.426)
bgnbd.PlotTransactionRateHeterogeneity(params)
params <- c(0.53, 4.414, 0.793, 2.426)
bgnbd.PlotTransactionRateHeterogeneity(params)

retina-dot-ai/BTYD documentation built on May 22, 2019, 12:17 p.m.