BTYD: Implementing Buy 'Til You Die Models
Version 2.4

This package contains functions for data preparation, parameter estimation, scoring, and plotting for the BG/BB, BG/NBD and Pareto/NBD models.

AuthorLukasz Dziurzynski [aut], Edward Wadsworth [aut], Peter Fader [ctb], Elea McDonnell Feit [ctb], Daniel McCarthy [aut, cre, ctb], Bruce Hardie [ctb], Arun Gopalakrishnan [ctb], Eric Schwartz [ctb], Yao Zhang [ctb]
Date of publication2014-11-07 09:59:40
MaintainerDaniel McCarthy <danielmc@wharton.upenn.edu>
LicenseGPL-3
Version2.4
URL wcai.wharton.upenn.edu
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("BTYD")

Getting started

Package overview

Popular man pages

bgbb.EstimateParameters: BG/BB Parameter Estimation
bgnbd.EstimateParameters: BG/NBD Parameter Estimation
BTYD-package: Implementing Buy 'Til You Die Models
dc.ElogToCbsCbt: Convernt Event Log to CBS and CBT Matrices
pnbd.EstimateParameters: Pareto/NBD Parameter Estimation
pnbd.PAlive: Pareto/NBD P(Alive)
spend.expected.value: Conditional expected transaction value
See all...

All man pages Function index File listing

Man pages

addLogs: Add Logs
bgbb.ConditionalExpectedTransactions: BG/BB Conditional Expected Transactions
bgbb.DERT: BG/BB Discounted Expected Residual Transactions
bgbb.EstimateParameters: BG/BB Parameter Estimation
bgbb.Expectation: BG/BB Expectation
bgbb.HeatmapHoldoutExpectedTrans: BG/BB Heatmap of Holdout Period Expected Transactions
bgbb.LL: BG/BB Log-Likelihood
bgbb.PAlive: BG/BB P(Alive)
bgbb.PlotDropoutRateHeterogeneity: BG/BB Plot Dropout Rate Heterogeneity
bgbb.PlotFrequencyInCalibration: BG/BB Plot Frequency in Calibration Period
bgbb.PlotFrequencyInHoldout: BG/BB Plot Frequency in Holdout
bgbb.PlotFreqVsConditionalExpectedFrequency: BG/BB Plot Frequency vs Conditional Expected Frequency
bgbb.PlotRecVsConditionalExpectedFrequency: BG/BB Plot Recency vs Conditional Expected Frequency
bgbb.PlotTrackingCum: BG/BB Tracking Cumulative Transactions Plot
bgbb.PlotTrackingInc: BG/BB Tracking Incremental Transactions Plot
bgbb.PlotTransactionRateHeterogeneity: BG/BB Plot Transaction Rate Heterogeneity
bgbb.pmf: BG/BB Probability Mass Function
bgbb.pmf.General: BG/BB General Probability Mass Function
bgbb.PosteriorMeanDropoutRate: BG/BB Posterior Mean Dropout Rate
bgbb.PosteriorMeanLmProductMoment: BG/BB Posterior Mean (l,m)th Product Moment
bgbb.PosteriorMeanTransactionRate: BG/BB Posterior Mean Transaction Rate
bgnbd.compress.cbs: Compress Customer-by-Sufficient-Statistic Matrix
bgnbd.ConditionalExpectedTransactions: BG/NBD Conditional Expected Transactions
bgnbd.EstimateParameters: BG/NBD Parameter Estimation
bgnbd.Expectation: BG/NBD Expectation
bgnbd.ExpectedCumulativeTransactions: BG/NBD Expected Cumulative Transactions
bgnbd.LL: BG/NBD Log-Likelihood
bgnbd.PAlive: BG/NBD P(Alive)
bgnbd.PlotDropoutRateHeterogeneity: BG/NBD Plot Dropout Probability Heterogeneity
bgnbd.PlotFrequencyInCalibration: BG/NBD Plot Frequency in Calibration Period
bgnbd.PlotFreqVsConditionalExpectedFrequency: BG/NBD Plot Frequency vs. Conditional Expected Frequency
bgnbd.PlotRecVsConditionalExpectedFrequency: BG/NBD Plot Actual vs. Conditional Expected Frequency by...
bgnbd.PlotTrackingCum: BG/NBD Tracking Cumulative Transactions Plot
bgnbd.PlotTrackingInc: BG/NBD Tracking Incremental Transactions Comparison
bgnbd.PlotTransactionRateHeterogeneity: BG/NBD Plot Transaction Rate Heterogeneity
bgnbd.pmf: BG/NBD Probability Mass Function
bgnbd.pmf.General: Generalized BG/NBD Probability Mass Function
BTYD-package: Implementing Buy 'Til You Die Models
cdnowElog: CDNOW event log data
cdnowSummary: CDNOW repeat transaction data summary
dc.BuildCBSFromCBTAndDates: Build CBS matrix from CBT matrix
dc.BuildCBTFromElog: Build Customer-by-Time Matrix from Event Log
dc.check.model.params: Check model params
dc.CreateFreqCBT: Create Frequency Customer-by-Time Matrix
dc.CreateReachCBT: Create Reach Customer-by-Time Matrix
dc.CreateSpendCBT: Create Spend Customer-by-Time Matrix
dc.CumulativeToIncremental: Cumulative to Incremental
dc.DissipateElog: Dissipate Event Log
dc.ElogToCbsCbt: Convernt Event Log to CBS and CBT Matrices
dc.FilterCustByBirth: Filter Customer by Birth
dc.GetFirstPurchasePeriodsFromCBT: Get First Purchase Periods from Customer-by-Time Matrix
dc.GetLastPurchasePeriodsFromCBT: Get Last Purchase Periods from Customer-by-Time Matrix
dc.MakeRFmatrixCal: Make Calibration Period Recency-Frequency Matrix
dc.MakeRFmatrixHoldout: Make Holdout Period Recency-Frequency Matrix
dc.MakeRFmatrixSkeleton: Make Recency-Frequency Matrix Skeleton
dc.MergeCustomers: Merge Customers
dc.MergeTransactionsOnSameDate: Merge Transactions on Same Day
dc.PlotLogLikelihoodContour: Plot Log-Likelihood Contour
dc.PlotLogLikelihoodContours: Plot Log-Likelihood Contour
dc.ReadLines: Read Lines
dc.RemoveTimeBetween: Remove Time Between
dc.SplitUpElogForRepeatTrans: Split Up Event Log for Repeat Transactions
dc.WriteLine: Write Line
discreteSimElog: Discrete simulated annual event log data
donationsSummary: Discrete donation data summary
pnbd.compress.cbs: Compress Customer-by-Sufficient-Statistic Matrix
pnbd.ConditionalExpectedTransactions: Pareto/NBD Conditional Expected Transactions
pnbd.DERT: Pareto/NBD Discounted Expected Residual Transactions
pnbd.EstimateParameters: Pareto/NBD Parameter Estimation
pnbd.Expectation: Pareto/NBD Expectation
pnbd.ExpectedCumulativeTransactions: Pareto/NBD Expected Cumulative Transactions
pnbd.LL: Pareto/NBD Log-Likelihood
pnbd.PAlive: Pareto/NBD P(Alive)
pnbd.Plot.DERT: Pareto/NBD Plot Discounted Expected Residual Transactions
pnbd.PlotDropoutRateHeterogeneity: Pareto/NBD Plot Dropout Rate Heterogeneity
pnbd.PlotFrequencyInCalibration: Pareto/NBD Plot Frequency in Calibration Period
pnbd.PlotFreqVsConditionalExpectedFrequency: Pareto/NBD Plot Frequency vs. Conditional Expected Frequency
pnbd.PlotRecVsConditionalExpectedFrequency: Pareto/NBD Plot Actual vs. Conditional Expected Frequency by...
pnbd.PlotTrackingCum: Pareto/NBD Tracking Cumulative Transactions Plot
pnbd.PlotTrackingInc: Pareto/NBD Tracking Incremental Transactions Comparison
pnbd.PlotTransactionRateHeterogeneity: Pareto/NBD Plot Transaction Rate Heterogeneity
pnbd.pmf: Pareto/NBD Probability Mass Function
pnbd.pmf.General: Generalized Pareto/NBD Probability Mass Function
spend.EstimateParameters: Spend Parameter Estimation
spend.expected.value: Conditional expected transaction value
spend.LL: Spend Log-Likelihood
spend.marginal.likelihood: Gamma-gamma marginal likelihood
spend.plot.average.transaction.value: Plot Actual vs. Expected Average Transaction Value
subLogs: Subtract Logs

Functions

Files

inst
inst/doc
inst/doc/BTYD-walkthrough.Rnw
inst/doc/BTYD-walkthrough.pdf
inst/doc/BTYD-walkthrough.R
NAMESPACE
demo
demo/spend_cdnow.R
demo/pnbd_cdnow.R
demo/bgbb_donations.R
demo/00Index
demo/bgnbd_cdnow.R
data
data/donationsSummary.RData
data/discreteSimElog.csv
data/cdnowSummary.RData
data/cdnowElog.csv
R
R/dc.R
R/bgnbd.R
R/pnbd.R
R/spend.R
R/bgbb.R
vignettes
vignettes/BTYD-walkthrough.Rnw
vignettes/figure
vignettes/figure/bgbbTrackingCum.pdf
vignettes/figure/bgnbdTrackingCum.pdf
vignettes/figure/bgnbdDropoutHeterogeneity.pdf
vignettes/figure/bgbbCondExpCompRec.pdf
vignettes/figure/bgbbTrackingInc.pdf
vignettes/figure/bgnbdCondExpComp.pdf
vignettes/figure/pnbdCalibrationFit.pdf
vignettes/figure/bgbbCalibrationFit.pdf
vignettes/figure/bgnbdCalibrationFit.pdf
vignettes/figure/pnbdTrackingInc.pdf
vignettes/figure/bgbbDropoutHeterogeneity.pdf
vignettes/figure/unnamed-chunk-17.pdf
vignettes/figure/bgnbdTransactionHeterogeneity.pdf
vignettes/figure/pnbdCondExpComp.pdf
vignettes/figure/bgbbCondExpComp.pdf
vignettes/figure/pnbdTrackingCum.pdf
vignettes/figure/bgbbTransactionHeterogeneity.pdf
vignettes/figure/pnbdDropoutHeterogeneity.pdf
vignettes/figure/pnbdTransactionHeterogeneity.pdf
vignettes/figure/bgnbdTrackingInc.pdf
vignettes/BTYD-walkthrough.synctex.gz
MD5
build
build/vignette.rds
DESCRIPTION
ChangeLog
man
man/dc.RemoveTimeBetween.Rd
man/bgbb.EstimateParameters.Rd
man/dc.GetLastPurchasePeriodsFromCBT.Rd
man/dc.BuildCBSFromCBTAndDates.Rd
man/pnbd.PAlive.Rd
man/dc.CreateReachCBT.Rd
man/pnbd.ConditionalExpectedTransactions.Rd
man/dc.check.model.params.Rd
man/bgnbd.PlotDropoutRateHeterogeneity.Rd
man/bgbb.pmf.Rd
man/cdnowSummary.Rd
man/spend.LL.Rd
man/pnbd.PlotFrequencyInCalibration.Rd
man/bgbb.PosteriorMeanTransactionRate.Rd
man/bgnbd.compress.cbs.Rd
man/dc.MergeTransactionsOnSameDate.Rd
man/pnbd.PlotTransactionRateHeterogeneity.Rd
man/dc.CreateFreqCBT.Rd
man/pnbd.ExpectedCumulativeTransactions.Rd
man/bgnbd.PlotTrackingInc.Rd
man/spend.marginal.likelihood.Rd
man/bgnbd.PlotTrackingCum.Rd
man/pnbd.PlotFreqVsConditionalExpectedFrequency.Rd
man/dc.PlotLogLikelihoodContours.Rd
man/dc.MergeCustomers.Rd
man/bgbb.PlotDropoutRateHeterogeneity.Rd
man/dc.SplitUpElogForRepeatTrans.Rd
man/dc.DissipateElog.Rd
man/bgbb.PlotRecVsConditionalExpectedFrequency.Rd
man/discreteSimElog.Rd
man/bgnbd.PlotFreqVsConditionalExpectedFrequency.Rd
man/bgnbd.Expectation.Rd
man/pnbd.compress.cbs.Rd
man/bgbb.PlotFrequencyInCalibration.Rd
man/dc.CreateSpendCBT.Rd
man/dc.MakeRFmatrixCal.Rd
man/dc.WriteLine.Rd
man/bgbb.PAlive.Rd
man/dc.MakeRFmatrixHoldout.Rd
man/bgbb.PlotFrequencyInHoldout.Rd
man/spend.EstimateParameters.Rd
man/pnbd.LL.Rd
man/dc.GetFirstPurchasePeriodsFromCBT.Rd
man/spend.expected.value.Rd
man/bgbb.PlotFreqVsConditionalExpectedFrequency.Rd
man/bgnbd.pmf.Rd
man/bgnbd.ExpectedCumulativeTransactions.Rd
man/dc.ReadLines.Rd
man/bgbb.PlotTrackingInc.Rd
man/bgbb.LL.Rd
man/bgbb.Expectation.Rd
man/bgbb.PlotTrackingCum.Rd
man/bgnbd.PlotTransactionRateHeterogeneity.Rd
man/dc.BuildCBTFromElog.Rd
man/bgbb.ConditionalExpectedTransactions.Rd
man/pnbd.PlotDropoutRateHeterogeneity.Rd
man/bgnbd.PlotRecVsConditionalExpectedFrequency.Rd
man/dc.CumulativeToIncremental.Rd
man/dc.PlotLogLikelihoodContour.Rd
man/bgbb.PlotTransactionRateHeterogeneity.Rd
man/bgnbd.PAlive.Rd
man/bgnbd.pmf.General.Rd
man/pnbd.DERT.Rd
man/bgnbd.PlotFrequencyInCalibration.Rd
man/pnbd.EstimateParameters.Rd
man/bgbb.PosteriorMeanLmProductMoment.Rd
man/pnbd.Expectation.Rd
man/bgbb.PosteriorMeanDropoutRate.Rd
man/dc.ElogToCbsCbt.Rd
man/pnbd.PlotRecVsConditionalExpectedFrequency.Rd
man/spend.plot.average.transaction.value.Rd
man/pnbd.pmf.Rd
man/cdnowElog.Rd
man/pnbd.pmf.General.Rd
man/pnbd.Plot.DERT.Rd
man/subLogs.Rd
man/pnbd.PlotTrackingInc.Rd
man/bgbb.HeatmapHoldoutExpectedTrans.Rd
man/bgnbd.EstimateParameters.Rd
man/donationsSummary.Rd
man/bgnbd.LL.Rd
man/bgbb.pmf.General.Rd
man/bgnbd.ConditionalExpectedTransactions.Rd
man/dc.FilterCustByBirth.Rd
man/BTYD-package.Rd
man/addLogs.Rd
man/pnbd.PlotTrackingCum.Rd
man/bgbb.DERT.Rd
man/dc.MakeRFmatrixSkeleton.Rd
BTYD documentation built on May 19, 2017, 9:15 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.