triangular_matrix: Transform dataframe to triangular matrix for CLV model.

Description Usage Arguments Value

View source: R/sBGmodel.R

Description

triangular_matrix computes lower triangular matrix for the CLV model.

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 lower triangular matrix containing number of customers per cohort and period


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