Package: BTYDplus 1.2.0

BTYDplus: Probabilistic Models for Assessing and Predicting your Customer Base

Provides advanced statistical methods to describe and predict customers' purchase behavior in a non-contractual setting. 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 [Ehrenberg (1959) <doi:10.2307/2985810>], MBG/NBD [Batislam et al (2007) <doi:10.1016/j.ijresmar.2006.12.005>], (M)BG/CNBD-k [Reutterer et al (2020) <doi:10.1016/j.ijresmar.2020.09.002>], Pareto/NBD (HB) [Abe (2009) <doi:10.1287/mksc.1090.0502>] and Pareto/GGG [Platzer and Reutterer (2016) <doi:10.1287/mksc.2015.0963>].

Authors:Michael Platzer [aut, cre]

BTYDplus_1.2.0.tar.gz
BTYDplus_1.2.0.zip(r-4.5)BTYDplus_1.2.0.zip(r-4.4)BTYDplus_1.2.0.zip(r-4.3)
BTYDplus_1.2.0.tgz(r-4.4-x86_64)BTYDplus_1.2.0.tgz(r-4.4-arm64)BTYDplus_1.2.0.tgz(r-4.3-x86_64)BTYDplus_1.2.0.tgz(r-4.3-arm64)
BTYDplus_1.2.0.tar.gz(r-4.5-noble)BTYDplus_1.2.0.tar.gz(r-4.4-noble)
BTYDplus_1.2.0.tgz(r-4.4-emscripten)BTYDplus_1.2.0.tgz(r-4.3-emscripten)
BTYDplus.pdf |BTYDplus.html
BTYDplus/json (API)
NEWS

# Install 'BTYDplus' in R:
install.packages('BTYDplus', repos = c('https://mplatzer.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mplatzer/btydplus/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • groceryElog - Event log for customers of an online grocery store.

On CRAN:

crmcustomer-behaviormarketing-sciencepredictive-analytics

7.47 score 185 stars 64 scripts 659 downloads 57 exports 34 dependencies

Last updated 8 months agofrom:254e008e88. Checks:OK: 4 NOTE: 5. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-win-x86_64NOTENov 04 2024
R-4.5-linux-x86_64NOTENov 04 2024
R-4.4-win-x86_64NOTENov 04 2024
R-4.4-mac-x86_64NOTENov 04 2024
R-4.4-mac-aarch64NOTENov 04 2024
R-4.3-win-x86_64OKNov 04 2024
R-4.3-mac-x86_64OKNov 04 2024
R-4.3-mac-aarch64OKNov 04 2024

Exports:abe.GenerateDataabe.mcmc.DrawParametersbgcnbd.cbs.LLbgcnbd.ConditionalExpectedTransactionsbgcnbd.EstimateParametersbgcnbd.Expectationbgcnbd.ExpectedCumulativeTransactionsbgcnbd.GenerateDatabgcnbd.LLbgcnbd.PAlivebgcnbd.PlotFrequencyInCalibrationbgcnbd.PlotFreqVsConditionalExpectedFrequencybgcnbd.PlotRecVsConditionalExpectedFrequencybgcnbd.PlotTrackingCumbgcnbd.PlotTrackingIncbgcnbd.pmfelog2cbselog2cumelog2incestimateRegularitymbgcnbd.cbs.LLmbgcnbd.ConditionalExpectedTransactionsmbgcnbd.EstimateParametersmbgcnbd.Expectationmbgcnbd.ExpectedCumulativeTransactionsmbgcnbd.GenerateDatambgcnbd.LLmbgcnbd.PAlivembgcnbd.PlotFrequencyInCalibrationmbgcnbd.PlotFreqVsConditionalExpectedFrequencymbgcnbd.PlotRecVsConditionalExpectedFrequencymbgcnbd.PlotTrackingCummbgcnbd.PlotTrackingIncmbgcnbd.pmfmbgnbd.EstimateParametersmcmc.DrawFutureTransactionsmcmc.Expectationmcmc.ExpectedCumulativeTransactionsmcmc.PActivemcmc.PAlivemcmc.PlotFrequencyInCalibrationmcmc.plotPActiveDiagnosticmcmc.PlotTrackingCummcmc.PlotTrackingIncmcmc.pmfmcmc.setBurninnbd.cbs.LLnbd.ConditionalExpectedTransactionsnbd.EstimateParametersnbd.GenerateDatanbd.LLpggg.GenerateDatapggg.mcmc.DrawParameterspggg.plotRegularityRateHeterogeneityplotTimingPatternspnbd.GenerateDatapnbd.mcmc.DrawParameters

Dependencies:bayesmBTYDclicodacontfracdata.tabledeSolvedplyrellipticfansigenericsgluehypergeolatticelifecyclemagrittrMASSMatrixmvtnormnloptrnumDerivoptimxpillarpkgconfigpracmaR6RcppRcppArmadillorlangtibbletidyselectutf8vctrswithr

Customer Base Analysis with BTYDplus

Rendered fromBTYDplus-HowTo.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2020-12-13
Started: 2016-09-28

Readme and manuals

Help Manual

Help pageTopics
Simulate data according to Pareto/NBD (Abe) model assumptionsabe.GenerateData
Pareto/NBD (Abe) Parameter Drawsabe.mcmc.DrawParameters
Convert Event Log to customer-level summary statisticelog2cbs
Convert Event Log to Transaction Countselog2cum elog2inc
Estimate Regularity in Intertransaction TimingsestimateRegularity
Event log for customers of an online grocery store.groceryElog
(M)BG/CNBD-k Log-Likelihoodbgcnbd.cbs.LL bgcnbd.LL mbgcnbd.cbs.LL mbgcnbd.LL
(M)BG/CNBD-k Conditional Expected Transactionsbgcnbd.ConditionalExpectedTransactions mbgcnbd.ConditionalExpectedTransactions
(M)BG/CNBD-k Parameter Estimationbgcnbd.EstimateParameters mbgcnbd.EstimateParameters mbgnbd.EstimateParameters
(M)BG/CNBD-k Expectationbgcnbd.Expectation mbgcnbd.Expectation
(M)BG/CNBD-k Expected Cumulative Transactionsbgcnbd.ExpectedCumulativeTransactions mbgcnbd.ExpectedCumulativeTransactions
Simulate data according to (M)BG/CNBD-k model assumptionsbgcnbd.GenerateData mbgcnbd.GenerateData
(M)BG/CNBD-k P(alive)bgcnbd.PAlive mbgcnbd.PAlive
(M)BG/CNBD-k Plot Frequency in Calibration Periodbgcnbd.PlotFrequencyInCalibration mbgcnbd.PlotFrequencyInCalibration
(M)BG/CNBD-k Plot Frequency vs. Conditional Expected Frequencybgcnbd.PlotFreqVsConditionalExpectedFrequency mbgcnbd.PlotFreqVsConditionalExpectedFrequency
(M)BG/CNBD-k Plot Actual vs. Conditional Expected Frequency by Recencybgcnbd.PlotRecVsConditionalExpectedFrequency mbgcnbd.PlotRecVsConditionalExpectedFrequency
(M)BG/CNBD-k Tracking Cumulative Transactions Plotbgcnbd.PlotTrackingCum mbgcnbd.PlotTrackingCum
(M)BG/CNBD-k Tracking Incremental Transactions Comparisonbgcnbd.PlotTrackingInc mbgcnbd.PlotTrackingInc
(M)BG/CNBD-k Probability Mass Functionbgcnbd.pmf mbgcnbd.pmf
Draws number of future transactions based on MCMC parameter drawsmcmc.DrawFutureTransactions
Unconditional Expectation for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.Expectation
Expected Cumulative Transactions for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.ExpectedCumulativeTransactions
Calculates P(active) based on drawn future transactions.mcmc.PActive
Calculates P(alive) based on MCMC parameter drawsmcmc.PAlive
Frequency in Calibration Period for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.PlotFrequencyInCalibration
Draw diagnostic plot to inspect error in P(active).mcmc.plotPActiveDiagnostic
Tracking Cumulative Transactions Plot for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.PlotTrackingCum
Tracking Incremental Transactions Plot for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.PlotTrackingInc
Probability Mass Function for Pareto/GGG, Pareto/NBD (HB) and Pareto/NBD (Abe)mcmc.pmf
(Re-)set burnin of MCMC chains.mcmc.setBurnin
Calculate the log-likelihood of the NBD modelnbd.cbs.LL
NBD Conditional Expected Transactionsnbd.ConditionalExpectedTransactions
Parameter Estimation for the NBD modelnbd.EstimateParameters
Simulate data according to NBD model assumptionsnbd.GenerateData
Calculate the log-likelihood of the NBD modelnbd.LL
Simulate data according to Pareto/GGG model assumptionspggg.GenerateData
Pareto/GGG Parameter Drawspggg.mcmc.DrawParameters
Pareto/GGG Plot Regularity Rate Heterogeneitypggg.plotRegularityRateHeterogeneity
Plot timing patterns of sampled customersplotTimingPatterns
Simulate data according to Pareto/NBD model assumptionspnbd.GenerateData
Pareto/NBD (HB) Parameter Drawspnbd.mcmc.DrawParameters