single_cohort_data: Transform input for single cohort sBG model

Description Usage Arguments Value

View source: R/sBGmodel.R

Description

single_cohort_data creates a data frame which can be used to apply the sBG model for a single cohort.

Usage

1

Arguments

df_data

a data frame that contains per cohort and period the survived customers (must have columns 'cohort', 'period' and 'survived_customers').

Value

a data frame that contains per cohort and period the survived and lost customers (excluding first period).


runtastic/sBGmodel documentation built on Nov. 5, 2019, 4:21 a.m.