Package: CLVTools
Title: Tools for Customer Lifetime Value Estimation
Version: 0.12.1
Date: 2025-11-06
Authors@R: c(
    person(given="Patrick", family="Bachmann",    email = "pbachma@ethz.ch", role = c("cre","aut")),
    person(given="Niels",   family="Kuebler",     email = "niels.kuebler@uzh.ch", role = "aut"),
    person(given="Markus",  family="Meierer",     email = "markus.meierer@business.uzh.ch", role = "aut"),
    person(given="Jeffrey", family="Naef",        email = "naef@stat.math.ethz.ch",role = "aut"),
    person(given="E. Shin", family="Oblander",    email = "eoblander23@gsb.columbia.edu",role = "aut"),
    person(given="Patrik",  family="Schilter",    email = "patrik.schilter@gmail.com",role = "aut")
    )
Depends: R (>= 3.5.0), methods
Description: 
    A set of state-of-the-art probabilistic modeling approaches to derive estimates of individual customer lifetime values (CLV).
    Commonly, probabilistic approaches focus on modelling 3 processes, i.e. individuals' attrition, transaction, and spending process. 
    Latent customer attrition models, which are also known as "buy-'til-you-die models", model the attrition as well as the transaction process. 
    They are used to make inferences and predictions about transactional patterns of individual customers such as their future purchase behavior. 
    Moreover, these models have also been used to predict individuals’ long-term engagement in activities such as playing an online game or 
    posting to a social media platform. The spending process is usually modelled by a separate probabilistic model. Combining these results yields in 
    lifetime values estimates for individual customers.
    This package includes fast and accurate implementations of various probabilistic models for non-contractual settings 
    (e.g., grocery purchases or hotel visits). All implementations support time-invariant covariates, which can be used to control for e.g., 
    socio-demographics. If such an extension has been proposed in literature, we further provide the possibility to control for time-varying 
    covariates to control for e.g., seasonal patterns. 
    Currently, the package includes the following latent attrition models to model individuals' attrition and transaction process: 
    [1] Pareto/NBD model (Pareto/Negative-Binomial-Distribution), 
    [2] the Extended Pareto/NBD model (Pareto/Negative-Binomial-Distribution with time-varying covariates), 
    [3] the BG/NBD model (Beta-Gamma/Negative-Binomial-Distribution) and the 
    [4] GGom/NBD (Gamma-Gompertz/Negative-Binomial-Distribution). 
    Further, we provide an implementation of the Gamma/Gamma model to model the spending process of individuals.
Imports: data.table (>= 1.12.0), digest (>= 0.6.0), Formula (>= 1.2-4),
        ggplot2 (>= 3.2.0), lubridate (>= 1.7.8), numDeriv (>=
        2016.8-1.1), Matrix (>= 1.2-17), MASS, optimx (>= 2019-12.02),
        Rcpp(>= 0.12.12), stats, utils
Suggests: covr, knitr, rmarkdown, xml2, testthat (>= 3.0.0), lmtest,
        R.rsp
License: GPL-3
URL: https://github.com/bachmannpatrick/CLVTools
BugReports: https://github.com/bachmannpatrick/CLVTools/issues
NeedsCompilation: yes
LinkingTo: Rcpp, RcppArmadillo (>= 0.11.4.0.1), RcppGSL (>= 0.3.7),
        testthat
SystemRequirements: GNU GSL
LazyLoad: yes
Encoding: UTF-8
Collate: 'CLVTools.R' 'RcppExports.R' 'all_generics.R'
        'catch-routine-registration.R' 'class_clv_time.R'
        'class_clv_data.R' 'class_clv_model.R' 'class_clv_fitted.R'
        'class_clv_fitted_transactions.R'
        'class_clv_model_nocorrelation.R' 'class_clv_model_bgnbd.R'
        'class_clv_bgnbd.R' 'class_clv_fitted_transactions_staticcov.R'
        'class_clv_data_staticcovariates.R'
        'class_clv_model_bgnbd_staticcov.R'
        'class_clv_bgnbd_staticcov.R'
        'class_clv_data_dynamiccovariates.R'
        'class_clv_fitted_spending.R'
        'class_clv_fitted_transactions_dynamiccov.R'
        'class_clv_model_gg.R' 'class_clv_gg.R'
        'class_clv_model_ggomnbd_nocov.R' 'class_clv_ggomnbd.R'
        'class_clv_model_ggomnbd_staticcov.R'
        'class_clv_ggomnbd_staticcov.R'
        'class_clv_model_withcorrelation.R' 'class_clv_model_pnbd.R'
        'class_clv_model_pnbd_staticcov.R'
        'class_clv_model_pnbd_dynamiccov.R' 'class_clv_pnbd.R'
        'class_clv_pnbd_dynamiccov.R' 'class_clv_pnbd_staticcov.R'
        'class_clv_time_date.R' 'class_clv_time_datetime.R'
        'class_clv_time_days.R' 'class_clv_time_hours.R'
        'class_clv_time_weeks.R' 'class_clv_time_years.R'
        'clv_template_controlflow_estimate.R'
        'clv_template_controlflow_pmf.R'
        'clv_template_controlflow_predict.R' 'data.R'
        'f_DoExpectation.R' 'f_clvdata_inputchecks.R'
        'f_clvfitted_inputchecks.R' 'f_generics_clvdata.R'
        'f_generics_clvdatadyncov.R' 'f_generics_clvdatastaticcov.R'
        'f_generics_clvfitted.R' 'f_generics_clvfitted_estimate.R'
        'f_generics_clvfittedspending.R'
        'f_generics_clvfittedtransactions.R'
        'f_generics_clvfittedtransactionsdyncov.R'
        'f_generics_clvfittedtransactionsstaticcov.R'
        'f_generics_clvfittedtransactionsstaticcov_estimate.R'
        'f_generics_clvpnbddyncov.R' 'f_interface_bgbb.R'
        'f_interface_bgnbd.R' 'f_interface_bootstrappedapply.R'
        'f_interface_clvdata.R' 'f_interface_gg.R'
        'f_interface_ggomnbd.R' 'f_interface_hessian.R'
        'f_interface_latentattrition.R' 'f_interface_lrtest.R'
        'f_interface_newcustomer.R' 'f_interface_pmf.R'
        'f_interface_pnbd.R' 'f_interface_predict_clvfittedspending.R'
        'f_interface_predict_clvfittedtransactions.R'
        'f_interface_setdynamiccovariates.R'
        'f_interface_setstaticcovariates.R' 'f_interface_spending.R'
        'f_s3generics_clvdata.R' 'f_s3generics_clvdata_dynamiccov.R'
        'f_s3generics_clvdata_plot.R'
        'f_s3generics_clvdata_staticcov.R' 'f_s3generics_clvfitted.R'
        'f_s3generics_clvfittedspending_plot.R'
        'f_s3generics_clvfittedtransactions_plot.R'
        'f_s3generics_clvfittedtransactions_staticcov.R'
        'f_s3generics_clvtime.R' 'interlayer_callLL.R'
        'interlayer_callnextinterlayer.R' 'interlayer_constraints.R'
        'interlayer_correlation.R' 'interlayer_manager.R'
        'interlayer_regularization.R' 'pnbd_dyncov_ABCD.R'
        'pnbd_dyncov_BkSum.R' 'pnbd_dyncov_CET.R' 'pnbd_dyncov_DECT.R'
        'pnbd_dyncov_createwalks.R' 'pnbd_dyncov_expectation.R'
        'pnbd_dyncov_palive.R'
RoxygenNote: 7.3.2
VignetteBuilder: knitr, R.rsp
Config/testthat/parallel: false
Config/testthat/edition: 3
Packaged: 2025-11-06 13:54:12 UTC; rstudio
Author: Patrick Bachmann [cre, aut],
  Niels Kuebler [aut],
  Markus Meierer [aut],
  Jeffrey Naef [aut],
  E. Shin Oblander [aut],
  Patrik Schilter [aut]
Maintainer: Patrick Bachmann <pbachma@ethz.ch>
Repository: CRAN
Date/Publication: 2025-11-06 14:40:02 UTC
Built: R 4.5.3; x86_64-w64-mingw32; 2026-05-16 19:18:10 UTC; windows
Archs: x64
