CLVTools
Tools for Customer Lifetime Value Estimation
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.
Downloads
478
Last 30 days
8137th
1.5K
Last 90 days
6.2K
Last year
Trend: -19.9% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (3 non-OK)
installed package size
installed size is 17.8Mb
sub-directories of 1Mb or more:
libs 15.5Mb
installed package size
installed size is 17.7Mb
sub-directories of 1Mb or more:
libs 15.4Mb
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building 'CLVTools.Rmd' using rmarkdown
! Unable to load picture or PDF file '1942ac58d38b3a30068d3c1c5e94813d575d5242.
pdf'.
<to be read again>
}
l.226 ...ac58d38b3a30068d3c1c5e94813d575d5242.pdf}
Error: processing vignette 'CLVTools.Rmd' failed with diagnostics:
LaTeX failed to compile D:/RCompile/CRANpkg/local/4.4/CLVTools.Rcheck/vign_test/CLVTools/vignettes/CLVTools.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See CLVTools.log for more info.
--- failed re-building 'CLVTools.Rmd'
--- re-building 'CLVTools_advanced_techniques.pdf.asis' using asis
--- finished re-building 'CLVTools_advanced_techniques.pdf.asis'
--- re-building 'CLVTools_classes.pdf.asis' using asis
--- finished re-building 'CLVTools_classes.pdf.asis'
--- re-building 'CLVTools_intuitive_explanations.pdf.asis' using asis
--- finished re-building 'CLVTools_intuitive_explanations.pdf.asis'
SUMMARY: processing the following file failed:
'CLVTools.Rmd'
Error: Vignette re-building failed.
Execution halted
Check History
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
installed package size
installed size is 17.8Mb
sub-directories of 1Mb or more:
libs 15.5Mb
installed package size
installed size is 17.7Mb
sub-directories of 1Mb or more:
libs 15.4Mb
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building 'CLVTools.Rmd' using rmarkdown
! Unable to load picture or PDF file '1942ac58d38b3a30068d3c1c5e94813d575d5242.
pdf'.
<to be read again>
}
l.226 ...ac58d38b3a30068d3c1c5e94813d575d
...[truncated]...
-building 'CLVTools_intuitive_explanations.pdf.asis' using asis
--- finished re-building 'CLVTools_intuitive_explanations.pdf.asis'
SUMMARY: processing the following file failed:
'CLVTools.Rmd'
Error: Vignette re-building failed.
Execution halted
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
R code for possible problems
Failed to query server: Connection timed out
installed package size
installed size is 17.8Mb
sub-directories of 1Mb or more:
libs 15.5Mb
installed package size
installed size is 17.7Mb
sub-directories of 1Mb or more:
libs 15.4Mb