{
  "_id": "6a1f2eedb401979e73426be2",
  "Package": "BTYD",
  "Type": "Package",
  "Title": "Implementing BTYD Models with the Log Sum Exp Patch",
  "Version": "2.4.3",
  "Authors@R": "c(person(\"Lukasz\", \"Dziurzynski\", role=\"aut\"),\nperson(\"Edward\", \"Wadsworth\", role=\"aut\"),\nperson(\"Peter\", \"Fader\", role=\"ctb\"),\nperson(\"Elea\", \"McDonnell Feit\", role=\"ctb\"),\nperson(\"Daniel\", \"McCarthy\", role=c(\"aut\", \"ctb\")),\nperson(\"Bruce\", \"Hardie\", role=\"ctb\"),\nperson(\"Arun\", \"Gopalakrishnan\", role=\"ctb\"),\nperson(\"Eric\", \"Schwartz\", role=\"ctb\"),\nperson(\"Yao\", \"Zhang\", role=\"ctb\"),\nperson(\"Gabi\", \"Huiber\", role=c(\"ctb\", \"cre\"), email=\"ghuiber@gmail.com\"))",
  "Maintainer": "Gabi Huiber <ghuiber@gmail.com>",
  "BugReports": "https://github.com/ghuiber/BTYD/issues",
  "Description": "Functions for data preparation, parameter estimation,\nscoring, and plotting for the BG/BB (Fader, Hardie, and Shang\n2010 <doi:10.1287/mksc.1100.0580>), BG/NBD (Fader, Hardie, and\nLee 2005 <doi:10.1287/mksc.1040.0098>) and Pareto/NBD and\nGamma/Gamma (Fader, Hardie, and Lee 2005\n<doi:10.1509/jmkr.2005.42.4.415>) models.",
  "License": "GPL-3",
  "Collate": "'data.R' 'BTYD.R' 'bgbb.R' 'bgnbd.R' 'pnbd.R' 'dc.R' 'spend.R'",
  "VignetteBuilder": "knitr, rmarkdown",
  "Author": "Lukasz Dziurzynski [aut], Edward Wadsworth [aut], Peter Fader\n[ctb], Elea McDonnell Feit [ctb], Daniel McCarthy [aut, ctb],\nBruce Hardie [ctb], Arun Gopalakrishnan [ctb], Eric Schwartz\n[ctb], Yao Zhang [ctb], Gabi Huiber [ctb, cre]",
  "NeedsCompilation": "no",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.2",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "cmake pari-gp",
  "Repository": "https://ghuiber.r-universe.dev",
  "Date/Publication": "2022-03-28 22:43:08 UTC",
  "RemoteUrl": "https://github.com/ghuiber/btyd",
  "RemoteRef": "HEAD",
  "RemoteSha": "317b09e4aea5fd85250a4a8f54288932511c1a56",
  "Packaged": {
    "Date": "2026-05-15 09:20:05 UTC",
    "User": "root"
  },
  "MD5sum": "da54c5d4623868592d7343f4c36c9501",
  "_user": "ghuiber",
  "_type": "src",
  "_file": "BTYD_2.4.3.tar.gz",
  "_fileid": "cde0483d0c0a432e99c70ae8cebeb1bc5ca5ff5e5fc579a9d33f8171f763f798",
  "_filesize": 1449666,
  "_sha256": "cde0483d0c0a432e99c70ae8cebeb1bc5ca5ff5e5fc579a9d33f8171f763f798",
  "_created": "2026-05-15T09:20:05.000Z",
  "_published": "2026-06-02T19:28:45.513Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79154605277,
      "time": 180,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7013966486"
    },
    {
      "job": 79154605733,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7013963680"
    },
    {
      "job": 79154605298,
      "time": 168,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7013963128"
    },
    {
      "job": 79154605381,
      "time": 236,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7013982208"
    },
    {
      "job": 79154605087,
      "time": 324,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013913426"
    },
    {
      "job": 79154605098,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367762402"
    },
    {
      "job": 79154605622,
      "time": 122,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7013949767"
    },
    {
      "job": 79154605752,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7013945109"
    },
    {
      "job": 79154605630,
      "time": 121,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7013950317"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ghuiber/btyd",
  "_commit": {
    "id": "317b09e4aea5fd85250a4a8f54288932511c1a56",
    "author": "Gabi Huiber <ghuiber@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md to reflect current version",
    "time": 1648507388
  },
  "_maintainer": {
    "name": "Gabi Huiber",
    "email": "ghuiber@gmail.com",
    "login": "ghuiber",
    "uuid": 892732
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "hypergeo",
      "role": "Depends"
    },
    {
      "package": "optimx",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "ghuiber",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "ghuiber",
      "count": 24,
      "uuid": 892732
    }
  ],
  "_userbio": {
    "uuid": 892732,
    "type": "user",
    "name": "Gabi Huiber"
  },
  "_downloads": {
    "count": 496,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BTYD"
  },
  "_devurl": "https://github.com/ghuiber/btyd",
  "_searchresults": 123,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BTYD.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ghuiber/btyd",
  "_realowner": "ghuiber",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2012-08-22"
    },
    {
      "version": "2.3",
      "date": "2014-07-21"
    },
    {
      "version": "2.4",
      "date": "2014-11-07"
    },
    {
      "version": "2.4.1",
      "date": "2020-11-30"
    },
    {
      "version": "2.4.2",
      "date": "2020-12-12"
    },
    {
      "version": "2.4.3",
      "date": "2021-11-17"
    }
  ],
  "_exports": [
    "bgbb.ConditionalExpectedTransactions",
    "bgbb.DERT",
    "bgbb.EstimateParameters",
    "bgbb.Expectation",
    "bgbb.HeatmapHoldoutExpectedTrans",
    "bgbb.LL",
    "bgbb.PAlive",
    "bgbb.PlotDropoutRateHeterogeneity",
    "bgbb.PlotFrequencyInCalibration",
    "bgbb.PlotFrequencyInHoldout",
    "bgbb.PlotFreqVsConditionalExpectedFrequency",
    "bgbb.PlotRecVsConditionalExpectedFrequency",
    "bgbb.PlotTrackingCum",
    "bgbb.PlotTrackingInc",
    "bgbb.PlotTransactionRateHeterogeneity",
    "bgbb.pmf",
    "bgbb.pmf.General",
    "bgbb.PosteriorMeanDropoutRate",
    "bgbb.PosteriorMeanLmProductMoment",
    "bgbb.PosteriorMeanTransactionRate",
    "bgbb.rf.matrix.DERT",
    "bgbb.rf.matrix.LL",
    "bgbb.rf.matrix.PosteriorMeanDropoutRate",
    "bgbb.rf.matrix.PosteriorMeanTransactionRate",
    "bgnbd.cbs.LL",
    "bgnbd.ConditionalExpectedTransactions",
    "bgnbd.EstimateParameters",
    "bgnbd.Expectation",
    "bgnbd.ExpectedCumulativeTransactions",
    "bgnbd.generalParams",
    "bgnbd.LL",
    "bgnbd.PAlive",
    "bgnbd.PlotDropoutRateHeterogeneity",
    "bgnbd.PlotFrequencyInCalibration",
    "bgnbd.PlotFreqVsConditionalExpectedFrequency",
    "bgnbd.PlotRecVsConditionalExpectedFrequency",
    "bgnbd.PlotTrackingCum",
    "bgnbd.PlotTrackingInc",
    "bgnbd.PlotTransactionRateHeterogeneity",
    "bgnbd.pmf",
    "bgnbd.pmf.General",
    "dc.BuildCBSFromCBTAndDates",
    "dc.BuildCBTFromElog",
    "dc.check.model.params",
    "dc.compress.cbs",
    "dc.CreateFreqCBT",
    "dc.CreateReachCBT",
    "dc.CreateSpendCBT",
    "dc.CumulativeToIncremental",
    "dc.DissipateElog",
    "dc.ElogToCbsCbt",
    "dc.FilterCustByBirth",
    "dc.GetFirstPurchasePeriodsFromCBT",
    "dc.GetLastPurchasePeriodsFromCBT",
    "dc.InputCheck",
    "dc.MakeRFmatrixCal",
    "dc.MakeRFmatrixHoldout",
    "dc.MakeRFmatrixSkeleton",
    "dc.MergeCustomers",
    "dc.MergeTransactionsOnSameDate",
    "dc.PlotLogLikelihoodContour",
    "dc.PlotLogLikelihoodContours",
    "dc.ReadLines",
    "dc.RemoveTimeBetween",
    "dc.SplitUpElogForRepeatTrans",
    "dc.WriteLine",
    "h2f1",
    "pnbd.cbs.LL",
    "pnbd.ConditionalExpectedTransactions",
    "pnbd.DERT",
    "pnbd.EstimateParameters",
    "pnbd.Expectation",
    "pnbd.ExpectedCumulativeTransactions",
    "pnbd.generalParams",
    "pnbd.LL",
    "pnbd.PAlive",
    "pnbd.Plot.DERT",
    "pnbd.PlotDropoutRateHeterogeneity",
    "pnbd.PlotFrequencyInCalibration",
    "pnbd.PlotFreqVsConditionalExpectedFrequency",
    "pnbd.PlotRateHeterogeneity",
    "pnbd.PlotRecVsConditionalExpectedFrequency",
    "pnbd.PlotTrackingCum",
    "pnbd.PlotTrackingInc",
    "pnbd.PlotTransactionRateHeterogeneity",
    "pnbd.pmf",
    "pnbd.pmf.General",
    "spend.EstimateParameters",
    "spend.expected.value",
    "spend.generalParams",
    "spend.LL",
    "spend.marginal.likelihood",
    "spend.plot.average.transaction.value"
  ],
  "_datasets": [
    {
      "name": "cdnowElog",
      "title": "CDNOW event log data",
      "object": "cdnowElog",
      "file": "cdnowElog.csv.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "masterid.sampleid.date.cds.sales"
      ],
      "rows": 6919,
      "table": true,
      "tojson": true
    },
    {
      "name": "cdnowSummary",
      "title": "CDNOW repeat transaction data summary",
      "object": "cdnowSummary",
      "file": "cdnowSummary.RData",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "discreteSimElog",
      "title": "Discrete simulated annual event log data",
      "object": "discreteSimElog",
      "file": "discreteSimElog.csv.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cust.date"
      ],
      "rows": 52432,
      "table": true,
      "tojson": true
    },
    {
      "name": "donationsSummary",
      "title": "Discrete donation data summary",
      "object": "donationsSummary",
      "file": "donationsSummary.RData",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "BTYD-package",
      "title": "This project was funded and sponsored by Wharton Customer Analytics.",
      "topics": [
        "BTYD-package",
        "BTYD"
      ]
    },
    {
      "page": "addLogs",
      "title": "Add Logs",
      "topics": [
        "addLogs"
      ]
    },
    {
      "page": "bgbb.ConditionalExpectedTransactions",
      "title": "BG/BB Conditional Expected Transactions",
      "topics": [
        "bgbb.ConditionalExpectedTransactions"
      ]
    },
    {
      "page": "bgbb.DERT",
      "title": "BG/BB Discounted Expected Residual Transactions",
      "topics": [
        "bgbb.DERT"
      ]
    },
    {
      "page": "bgbb.EstimateParameters",
      "title": "BG/BB Parameter estimation",
      "topics": [
        "bgbb.EstimateParameters"
      ]
    },
    {
      "page": "bgbb.Expectation",
      "title": "BG/BB Expectation",
      "topics": [
        "bgbb.Expectation"
      ]
    },
    {
      "page": "bgbb.HeatmapHoldoutExpectedTrans",
      "title": "BG/BB Heatmap of Holdout Period Expected Transactions",
      "topics": [
        "bgbb.HeatmapHoldoutExpectedTrans"
      ]
    },
    {
      "page": "bgbb.LL",
      "title": "BG/BB Log-Likelihood",
      "topics": [
        "bgbb.LL"
      ]
    },
    {
      "page": "bgbb.PAlive",
      "title": "BG/BB P(Alive)",
      "topics": [
        "bgbb.PAlive"
      ]
    },
    {
      "page": "bgbb.PlotDropoutRateHeterogeneity",
      "title": "BG/BB Plot Dropout Rate Heterogeneity",
      "topics": [
        "bgbb.PlotDropoutRateHeterogeneity"
      ]
    },
    {
      "page": "bgbb.PlotFrequencyInCalibration",
      "title": "BG/BB Plot Frequency in Calibration Period",
      "topics": [
        "bgbb.PlotFrequencyInCalibration"
      ]
    },
    {
      "page": "bgbb.PlotFrequencyInHoldout",
      "title": "BG/BB Plot Frequency in Holdout",
      "topics": [
        "bgbb.PlotFrequencyInHoldout"
      ]
    },
    {
      "page": "bgbb.PlotFreqVsConditionalExpectedFrequency",
      "title": "BG/BB Plot Frequency vs Conditional Expected Frequency",
      "topics": [
        "bgbb.PlotFreqVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "bgbb.PlotRecVsConditionalExpectedFrequency",
      "title": "BG/BB Plot Recency vs Conditional Expected Frequency",
      "topics": [
        "bgbb.PlotRecVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "bgbb.PlotTrackingCum",
      "title": "BG/BB Tracking Cumulative Transactions Plot",
      "topics": [
        "bgbb.PlotTrackingCum"
      ]
    },
    {
      "page": "bgbb.PlotTrackingInc",
      "title": "BG/BB Tracking Incremental Transactions Plot",
      "topics": [
        "bgbb.PlotTrackingInc"
      ]
    },
    {
      "page": "bgbb.PlotTransactionRateHeterogeneity",
      "title": "BG/BB Plot Transaction Rate Heterogeneity",
      "topics": [
        "bgbb.PlotTransactionRateHeterogeneity"
      ]
    },
    {
      "page": "bgbb.pmf",
      "title": "BG/BB Probability Mass Function",
      "topics": [
        "bgbb.pmf"
      ]
    },
    {
      "page": "bgbb.pmf.General",
      "title": "BG/BB General Probability Mass Function",
      "topics": [
        "bgbb.pmf.General"
      ]
    },
    {
      "page": "bgbb.PosteriorMeanDropoutRate",
      "title": "BG/BB Posterior Mean Dropout Rate",
      "topics": [
        "bgbb.PosteriorMeanDropoutRate"
      ]
    },
    {
      "page": "bgbb.PosteriorMeanLmProductMoment",
      "title": "BG/BB Posterior Mean (l,m)th Product Moment",
      "topics": [
        "bgbb.PosteriorMeanLmProductMoment"
      ]
    },
    {
      "page": "bgbb.PosteriorMeanTransactionRate",
      "title": "BG/BB Posterior Mean Transaction Rate",
      "topics": [
        "bgbb.PosteriorMeanTransactionRate"
      ]
    },
    {
      "page": "bgbb.rf.matrix.DERT",
      "title": "BG/BB Discounted Expected Residual Transactions using a recency-frequency matrix",
      "topics": [
        "bgbb.rf.matrix.DERT"
      ]
    },
    {
      "page": "bgbb.rf.matrix.LL",
      "title": "BG/BB Log-Likelihood using a recency-frequency matrix",
      "topics": [
        "bgbb.rf.matrix.LL"
      ]
    },
    {
      "page": "bgbb.rf.matrix.PosteriorMeanDropoutRate",
      "title": "BG/BB Posterior Mean Dropout Rate using a recency-frequency matrix",
      "topics": [
        "bgbb.rf.matrix.PosteriorMeanDropoutRate"
      ]
    },
    {
      "page": "bgbb.rf.matrix.PosteriorMeanTransactionRate",
      "title": "BG/BB Posterior Mean Transaction Rate using a recency-frequency matrix",
      "topics": [
        "bgbb.rf.matrix.PosteriorMeanTransactionRate"
      ]
    },
    {
      "page": "bgnbd.cbs.LL",
      "title": "BG/NBD Log-Likelihood Wrapper",
      "topics": [
        "bgnbd.cbs.LL"
      ]
    },
    {
      "page": "bgnbd.ConditionalExpectedTransactions",
      "title": "BG/NBD Conditional Expected Transactions",
      "topics": [
        "bgnbd.ConditionalExpectedTransactions"
      ]
    },
    {
      "page": "bgnbd.EstimateParameters",
      "title": "BG/NBD Parameter Estimation",
      "topics": [
        "bgnbd.EstimateParameters"
      ]
    },
    {
      "page": "bgnbd.Expectation",
      "title": "BG/NBD Expectation",
      "topics": [
        "bgnbd.Expectation"
      ]
    },
    {
      "page": "bgnbd.ExpectedCumulativeTransactions",
      "title": "BG/NBD Expected Cumulative Transactions",
      "topics": [
        "bgnbd.ExpectedCumulativeTransactions"
      ]
    },
    {
      "page": "bgnbd.generalParams",
      "title": "Define general parameters",
      "topics": [
        "bgnbd.generalParams"
      ]
    },
    {
      "page": "bgnbd.LL",
      "title": "BG/NBD Log-Likelihood",
      "topics": [
        "bgnbd.LL"
      ]
    },
    {
      "page": "bgnbd.PAlive",
      "title": "BG/NBD P(Alive)",
      "topics": [
        "bgnbd.PAlive"
      ]
    },
    {
      "page": "bgnbd.PlotDropoutRateHeterogeneity",
      "title": "BG/NBD Plot Dropout Probability Heterogeneity",
      "topics": [
        "bgnbd.PlotDropoutRateHeterogeneity"
      ]
    },
    {
      "page": "bgnbd.PlotFrequencyInCalibration",
      "title": "BG/NBD Plot Frequency in Calibration Period",
      "topics": [
        "bgnbd.PlotFrequencyInCalibration"
      ]
    },
    {
      "page": "bgnbd.PlotFreqVsConditionalExpectedFrequency",
      "title": "BG/NBD Plot Frequency vs. Conditional Expected Frequency",
      "topics": [
        "bgnbd.PlotFreqVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "bgnbd.PlotRecVsConditionalExpectedFrequency",
      "title": "BG/NBD Plot Actual vs. Conditional Expected Frequency by Recency",
      "topics": [
        "bgnbd.PlotRecVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "bgnbd.PlotTrackingCum",
      "title": "BG/NBD Tracking Cumulative Transactions Plot",
      "topics": [
        "bgnbd.PlotTrackingCum"
      ]
    },
    {
      "page": "bgnbd.PlotTrackingInc",
      "title": "BG/NBD Tracking Incremental Transactions Comparison",
      "topics": [
        "bgnbd.PlotTrackingInc"
      ]
    },
    {
      "page": "bgnbd.PlotTransactionRateHeterogeneity",
      "title": "BG/NBD Plot Transaction Rate Heterogeneity",
      "topics": [
        "bgnbd.PlotTransactionRateHeterogeneity"
      ]
    },
    {
      "page": "bgnbd.pmf",
      "title": "BG/NBD Probability Mass Function",
      "topics": [
        "bgnbd.pmf"
      ]
    },
    {
      "page": "bgnbd.pmf.General",
      "title": "Generalized BG/NBD Probability Mass Function",
      "topics": [
        "bgnbd.pmf.General"
      ]
    },
    {
      "page": "cdnowElog",
      "title": "CDNOW event log data",
      "topics": [
        "cdnowElog"
      ]
    },
    {
      "page": "cdnowSummary",
      "title": "CDNOW repeat transaction data summary",
      "topics": [
        "cdnowSummary"
      ]
    },
    {
      "page": "dc.BuildCBSFromCBTAndDates",
      "title": "Build CBS matrix from CBT matrix",
      "topics": [
        "dc.BuildCBSFromCBTAndDates"
      ]
    },
    {
      "page": "dc.BuildCBTFromElog",
      "title": "Build Customer-by-Time Matrix from Event Log",
      "topics": [
        "dc.BuildCBTFromElog"
      ]
    },
    {
      "page": "dc.check.model.params",
      "title": "Check model params",
      "topics": [
        "dc.check.model.params"
      ]
    },
    {
      "page": "dc.compress.cbs",
      "title": "Compress Customer-by-Sufficient-Statistic (CBS) Matrix",
      "topics": [
        "dc.compress.cbs"
      ]
    },
    {
      "page": "dc.CreateFreqCBT",
      "title": "Create Frequency Customer-by-Time Matrix",
      "topics": [
        "dc.CreateFreqCBT"
      ]
    },
    {
      "page": "dc.CreateReachCBT",
      "title": "Create Reach Customer-by-Time Matrix",
      "topics": [
        "dc.CreateReachCBT"
      ]
    },
    {
      "page": "dc.CreateSpendCBT",
      "title": "Create Spend Customer-by-Time Matrix",
      "topics": [
        "dc.CreateSpendCBT"
      ]
    },
    {
      "page": "dc.CumulativeToIncremental",
      "title": "Cumulative to Incremental",
      "topics": [
        "dc.CumulativeToIncremental"
      ]
    },
    {
      "page": "dc.DissipateElog",
      "title": "Dissipate Event Log",
      "topics": [
        "dc.DissipateElog"
      ]
    },
    {
      "page": "dc.ElogToCbsCbt",
      "title": "Convert Event Log to CBS and CBT Matrices",
      "topics": [
        "dc.ElogToCbsCbt"
      ]
    },
    {
      "page": "dc.FilterCustByBirth",
      "title": "Filter Customer by Birth",
      "topics": [
        "dc.FilterCustByBirth"
      ]
    },
    {
      "page": "dc.GetFirstPurchasePeriodsFromCBT",
      "title": "Get First Purchase Periods from Customer-by-Time Matrix",
      "topics": [
        "dc.GetFirstPurchasePeriodsFromCBT"
      ]
    },
    {
      "page": "dc.GetLastPurchasePeriodsFromCBT",
      "title": "Get Last Purchase Periods from Customer-by-Time Matrix",
      "topics": [
        "dc.GetLastPurchasePeriodsFromCBT"
      ]
    },
    {
      "page": "dc.InputCheck",
      "title": "Check the inputs to functions that use this common pattern",
      "topics": [
        "dc.InputCheck"
      ]
    },
    {
      "page": "dc.MakeRFmatrixCal",
      "title": "Make Calibration Period Recency-Frequency Matrix",
      "topics": [
        "dc.MakeRFmatrixCal"
      ]
    },
    {
      "page": "dc.MakeRFmatrixHoldout",
      "title": "Make Holdout Period Recency-Frequency Matrix",
      "topics": [
        "dc.MakeRFmatrixHoldout"
      ]
    },
    {
      "page": "dc.MakeRFmatrixSkeleton",
      "title": "Make Recency-Frequency Matrix Skeleton",
      "topics": [
        "dc.MakeRFmatrixSkeleton"
      ]
    },
    {
      "page": "dc.MergeCustomers",
      "title": "Merge Customers",
      "topics": [
        "dc.MergeCustomers"
      ]
    },
    {
      "page": "dc.MergeTransactionsOnSameDate",
      "title": "Merge Transactions on Same Day",
      "topics": [
        "dc.MergeTransactionsOnSameDate"
      ]
    },
    {
      "page": "dc.PlotLogLikelihoodContour",
      "title": "Plot Log-Likelihood Contour",
      "topics": [
        "dc.PlotLogLikelihoodContour"
      ]
    },
    {
      "page": "dc.PlotLogLikelihoodContours",
      "title": "Plot Log-Likelihood Contours",
      "topics": [
        "dc.PlotLogLikelihoodContours"
      ]
    },
    {
      "page": "dc.ReadLines",
      "title": "Read Lines",
      "topics": [
        "dc.ReadLines"
      ]
    },
    {
      "page": "dc.RemoveTimeBetween",
      "title": "Remove Time Between",
      "topics": [
        "dc.RemoveTimeBetween"
      ]
    },
    {
      "page": "dc.SplitUpElogForRepeatTrans",
      "title": "Split Up Event Log for Repeat Transactions",
      "topics": [
        "dc.SplitUpElogForRepeatTrans"
      ]
    },
    {
      "page": "dc.WriteLine",
      "title": "Write Line",
      "topics": [
        "dc.WriteLine"
      ]
    },
    {
      "page": "discreteSimElog",
      "title": "Discrete simulated annual event log data",
      "topics": [
        "discreteSimElog"
      ]
    },
    {
      "page": "donationsSummary",
      "title": "Discrete donation data summary",
      "topics": [
        "donationsSummary"
      ]
    },
    {
      "page": "h2f1",
      "title": "Use Bruce Hardie's Gaussian hypergeometric implementation",
      "topics": [
        "h2f1"
      ]
    },
    {
      "page": "pnbd.cbs.LL",
      "title": "Pareto/NBD Log-Likelihood",
      "topics": [
        "pnbd.cbs.LL"
      ]
    },
    {
      "page": "pnbd.ConditionalExpectedTransactions",
      "title": "Pareto/NBD Conditional Expected Transactions",
      "topics": [
        "pnbd.ConditionalExpectedTransactions"
      ]
    },
    {
      "page": "pnbd.DERT",
      "title": "Pareto/NBD Discounted Expected Residual Transactions",
      "topics": [
        "pnbd.DERT"
      ]
    },
    {
      "page": "pnbd.EstimateParameters",
      "title": "Pareto/NBD Parameter Estimation",
      "topics": [
        "pnbd.EstimateParameters"
      ]
    },
    {
      "page": "pnbd.Expectation",
      "title": "Pareto/NBD Expectation",
      "topics": [
        "pnbd.Expectation"
      ]
    },
    {
      "page": "pnbd.ExpectedCumulativeTransactions",
      "title": "Pareto/NBD Expected Cumulative Transactions",
      "topics": [
        "pnbd.ExpectedCumulativeTransactions"
      ]
    },
    {
      "page": "pnbd.generalParams",
      "title": "Define general parameters",
      "topics": [
        "pnbd.generalParams"
      ]
    },
    {
      "page": "pnbd.LL",
      "title": "Pareto/NBD Log-Likelihood",
      "topics": [
        "pnbd.LL"
      ]
    },
    {
      "page": "pnbd.PAlive",
      "title": "Pareto/NBD P(Alive)",
      "topics": [
        "pnbd.PAlive"
      ]
    },
    {
      "page": "pnbd.Plot.DERT",
      "title": "Pareto/NBD Plot Discounted Expected Residual Transactions",
      "topics": [
        "pnbd.Plot.DERT"
      ]
    },
    {
      "page": "pnbd.PlotDropoutRateHeterogeneity",
      "title": "Pareto/NBD Plot Dropout Rate Heterogeneity",
      "topics": [
        "pnbd.PlotDropoutRateHeterogeneity"
      ]
    },
    {
      "page": "pnbd.PlotFrequencyInCalibration",
      "title": "Pareto/NBD Plot Frequency in Calibration Period",
      "topics": [
        "pnbd.PlotFrequencyInCalibration"
      ]
    },
    {
      "page": "pnbd.PlotFreqVsConditionalExpectedFrequency",
      "title": "Pareto/NBD Plot Frequency vs. Conditional Expected Frequency",
      "topics": [
        "pnbd.PlotFreqVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "pnbd.PlotRateHeterogeneity",
      "title": "Plot Pareto/NBD Rate Heterogeneity",
      "topics": [
        "pnbd.PlotRateHeterogeneity"
      ]
    },
    {
      "page": "pnbd.PlotRecVsConditionalExpectedFrequency",
      "title": "Pareto/NBD Plot Actual vs. Conditional Expected Frequency by Recency",
      "topics": [
        "pnbd.PlotRecVsConditionalExpectedFrequency"
      ]
    },
    {
      "page": "pnbd.PlotTrackingCum",
      "title": "Pareto/NBD Tracking Cumulative Transactions Plot",
      "topics": [
        "pnbd.PlotTrackingCum"
      ]
    },
    {
      "page": "pnbd.PlotTrackingInc",
      "title": "Pareto/NBD Tracking Incremental Transactions Comparison",
      "topics": [
        "pnbd.PlotTrackingInc"
      ]
    },
    {
      "page": "pnbd.PlotTransactionRateHeterogeneity",
      "title": "Pareto/NBD Plot Transaction Rate Heterogeneity",
      "topics": [
        "pnbd.PlotTransactionRateHeterogeneity"
      ]
    },
    {
      "page": "pnbd.pmf",
      "title": "Pareto/NBD Probability Mass Function",
      "topics": [
        "pnbd.pmf"
      ]
    },
    {
      "page": "pnbd.pmf.General",
      "title": "Generalized Pareto/NBD Probability Mass Function",
      "topics": [
        "pnbd.pmf.General"
      ]
    },
    {
      "page": "spend.EstimateParameters",
      "title": "Spend Parameter Estimation",
      "topics": [
        "spend.EstimateParameters"
      ]
    },
    {
      "page": "spend.expected.value",
      "title": "Conditional expected transaction value",
      "topics": [
        "spend.expected.value"
      ]
    },
    {
      "page": "spend.generalParams",
      "title": "Define general parameters",
      "topics": [
        "spend.generalParams"
      ]
    },
    {
      "page": "spend.LL",
      "title": "Spend Log-Likelihood",
      "topics": [
        "spend.LL"
      ]
    },
    {
      "page": "spend.marginal.likelihood",
      "title": "Gamma-gamma marginal likelihood",
      "topics": [
        "spend.marginal.likelihood"
      ]
    },
    {
      "page": "spend.plot.average.transaction.value",
      "title": "Plot Actual vs. Expected Average Transaction Value",
      "topics": [
        "spend.plot.average.transaction.value"
      ]
    },
    {
      "page": "subLogs",
      "title": "Subtract Logs",
      "topics": [
        "subLogs"
      ]
    }
  ],
  "_readme": "https://github.com/ghuiber/btyd/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "contfrac",
    "deSolve",
    "dplyr",
    "elliptic",
    "generics",
    "glue",
    "hypergeo",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "nloptr",
    "numDeriv",
    "optimx",
    "pillar",
    "pkgconfig",
    "pracma",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "BTYD-walkthrough.Rnw",
      "filename": "BTYD-walkthrough.pdf",
      "title": "Buy 'Til You Die - A Walkthrough",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2020-11-08 09:31:33",
      "modified": "2021-11-16 20:09:25",
      "commits": 7
    }
  ],
  "_score": 5.633973155789674,
  "_indexed": true,
  "_nocasepkg": "btyd",
  "_universes": [
    "ghuiber"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.4.3",
      "date": "2026-05-15T09:22:41.000Z",
      "distro": "noble",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "96112be1ebe5687aefaef104372c2d69f0619218b0d5fed4e683278336aee5e3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.4.3",
      "date": "2026-05-15T09:22:36.000Z",
      "distro": "noble",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "b572fb8d7fb5267966071bd71ddb53713171ea9c004b7c6a0e059ec041bf58a5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.4.3",
      "date": "2026-05-15T09:22:36.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "6f9d55220fe269fe0e2b720bbb8ed3beed9a25723299811d2347374431d3dcea",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.4.3",
      "date": "2026-05-15T09:23:23.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "75042543016567886148215736ccd4e4d6a00b39fae88241841192027b134294",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.4.3",
      "date": "2026-05-15T09:21:35.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "9e0f6547ee57c7418e7e53c23b94cfb9bf0f75ba56489c1b650394585b988c99",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.4.3",
      "date": "2026-05-15T09:21:22.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "be9e7511e5a98c0134af9d6833c718a6e22d67f0e76d85333f9e6fadf87d6432",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.4.3",
      "date": "2026-05-15T09:21:37.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "cf027e0efddbe31e03944f705c33d363d9e93eff49bb34ab1cbe81eb02df5ece",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.4.3",
      "date": "2026-06-02T19:28:24.000Z",
      "commit": "317b09e4aea5fd85250a4a8f54288932511c1a56",
      "fileid": "e37d7c7a1fb8617a65594fe9ae33ddc43efdfcadc251600205259cdc481e564c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ghuiber/actions/runs/25910032465"
    }
  ]
}