Skip to main content

retenmod

This is a python port of the R package foretell. This projects customer retention rates, see “How to Project Customer Retention” Revisited: The Role of Duration Dependence (Fader et al., 2018) 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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retenmod-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file retenmod-0.0.1.tar.gz.

File metadata

  • Download URL: retenmod-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for retenmod-0.0.1.tar.gz
Algorithm Hash digest
SHA256 624da86ef9fcae3819617fd49c129350a782f03545a37df87f105c9b0a0a5052
MD5 97b392086c2e50c7c1ddd0dd4700cc94
BLAKE2b-256 31eec7d967d9672c54096e353afe612ae81a07524774a4696bd2d945a2933c32

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page