BTYD: Implementing Buy 'Til You Die Models

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
wcai.wharton.upenn.edu

View on CRAN

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

Files in this package

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

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

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