Metadata-Version: 2.1
Name: retenmod
Version: 0.0.1
Summary: retention models to forecast churn
Home-page: https://github.com/apwheele/retenmod
Author: Andrew Palmer Wheeler
Author-email: apwheele@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# retenmod

This is a python port of the R package [foretell](https://cran.r-project.org/web/packages/foretell/foretell.pdf). This projects customer retention rates, see [*“How to Project Customer Retention” Revisited: The Role of Duration Dependence* (Fader et al., 2018)](https://www.sciencedirect.com/science/article/pii/S1094996818300057) for the original formulation and description of the models. 

To install, just use pip:

    pip install retenmod

Only dependencies are scipy and numpy. For a simple example of use for the BdW model:

    import retenmod
    surv = [100, 86.9, 74.3, 65.3, 59.3]
    res = retenmod.bdw(surv,6)
    print(res.params)
    print(res.proj)

