The BTYDplus R package provides advanced statistical methods to describe and predict customer’s purchase behavior. It uses historic transaction records to fit a probabilistic model, which then allows to compute quantities of managerial interest on a cohort- as well as on a customer level (Customer Lifetime Value, Customer Equity, P(alive), etc.).
This package complements the BTYD package by providing several additional buy-till-you-die models, that have been published in the marketing literature, but whose implementation are complex and non-trivial. These models are: NBD, MBG/NBD, BG/CNBD-k, MBG/CNBD-k, Pareto/NBD (HB), Pareto/NBD (Abe) and Pareto/GGG.
# install.packages("devtools")
devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE)
library(BTYDplus)
demo("cdnow") # Demonstration of fitting various models to the CDNow dataset
demo("mbg-cnbd-k") # Demonstration of MBG/CNBD-k model with grocery dataset
demo("pareto-abe") # Demonstration of Abe's Pareto/NBD variant with CDNow dataset
demo("pareto-ggg") # Demonstration of Pareto/NBD (HB) & Pareto/GGG model with grocery dataset
These R source files extend the functionality of the BTYD package by providing functions for parameter estimation and scoring for NBD, MBG/NBD, BG/CNBD-k, MBG/CNBD-k, Pareto/NBD (HB), Pareto/NBD (Abe) and Pareto/GGG.
We certainly welcome all feedback and contributions to this package! Please use GitHub Issues for filing bug reports and feature requests, and provide your contributions in the form of Pull Requests. See also these general guidelines to contribute to Open Source projects on GitHub.