CADF0.1 package

Customer Analytics Data Formatting

annualhalfing_LL

Likelihood maximization for annual halfing customer retention model

annualhalfingmodel

Annual Halfing Model

bass.answeringmachines

Answering machine data

bigT_expand_via_apply

bigT_expand_via_apply

billionaire

Billionaires

ca_SRM_time_varying

Time varying Simple retention model Estimates retention rate using log...

ca_SRM

ca_SRM

ca_to_ps_matrix

CADF to purchase string Extracts purchase strings from the CADF and fo...

CADF_to_annualhalfing_data

Convert CADF dataset into annualhalfing model dataset

CADF_to_btyd_pareto_nbd

CADF to btyd pareto nbd model

CADF_to_logistic_regression

CADF to logistic regression

CADF_to_migration_model

CADF_to_migration_model converts CADF data to migration model data

CADF_to_nth_purchase_allrows

CADF_to_nth_purchase_allrows inputs CADF data and the desired purchase...

CADF_to_nth_purchase

CADF_to_nth_purchase

cadf.data.sample

CADF-formatted sample data

cadf

cadf.

create.purchase.string

Function called during Customer$new() (the Customer R6 class) to creat...

create.recency.string

create_recency_string

Customer

R6 Class representing a customer. Otherwise known as the CADF.

f_CustomerModelingMatrix

For each customer, return a modeling matrix that is utilized for logis...

f_CustomerSurvivalModelingMatrix

For each customer, return a survival modeling matrix that is utilized ...

f_intMonths

Compute the months between two purchase dates

frequency_from_ps

Purchase string to frequency count

frequency_from_rle

RLE object to frequency count

generate_date_template

generate_date_template

id_to_CADF

Convert to CADF for a single customer id

ld_sample_customer_matrix

LD functions are utilized for learning and diagnostic use.

modeling.annualhalfing.likelihood

Likelihood function for annual halfing model

modeling.LL.gamma_spend

LL function for the gamma gamma spend model

pdf_gamma

PDF probability function for gamma distribution

pdf_gamma2

Probability density function for gamma distribution

print.glossary

The glossary for the CADF data format

ps_to_T_custom

Calculates T from a purchase string. Custom.

ps_to_T_strict_quitter

Calculates T from a purchase string

ps_to_T_strict_stayer

Calculates T from a purchase string under the "strict stayer" assumpti...

psmatrix_to_psstring

psmatrix_to_psstring

psmatrix_to_recency_attimeof_matrix

accepts a psmatrix converts 1/0 purchase strings to recency at timeof

qc_transactional_data

The customer analytics data format (CADF) relays heavily on correct in...

simple_migration

Simple Migration

split.transaction.file_to_CADF

Create a CADF dataset from a dataframe

stocks

Stockmarket put/call data

transitions

Calculate transition periods between two timeperiods

Converts customer transaction data (ID, purchase date) into a R6 class called customer. The class stores various customer analytics calculations at the customer level. The package also contains functionality to convert data in the R6 class to data.frames that can serve as inputs for various customer analytics models.

  • Maintainer: Ludwig Steven
  • License: GPL-3
  • Last published: 2024-10-31