Run_CLV_Analysis: CLV Analysis

View source: R/Run_CLV_Analysis.R

Run_CLV_AnalysisR Documentation

CLV Analysis

Description

This function conducts a CLV analysis on two csv data files containing data on profit groups and their transition matrix.

Usage

Run_CLV_Analysis(
  profitgroups_data,
  transitionmatrix_data,
  discount_rate,
  new_customers,
  more_customers,
  resizepaper = 1.2
)

Arguments

profitgroups_data

Profit groups data csv file

transitionmatrix_data

Transition matrix data csv file

discount_rate

Discount rate

new_customers

Number of new customers added on avg. in each period

more_customers

Number of extra customers added due to promotions in any of the first 10 periods.

resizepaper

How much larger should the pdf paper size be for the results to fit?

Examples

## Not run: 
# This is the sample code to be copied and used in a new R Script:
library(listentodata)
clear_console()
profitgroups_data = load_csv_data()
transitionmatrix_data = load_csv_data()
discount_rate = 0.15
new_customers = 0
more_customers = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
resizepaper = 1.2
Run_CLV_Analysis(profitgroups_data,
                 transitionmatrix_data,
                 discount_rate,
                 new_customers,
                 more_customers,
                 resizepaper)

## End(Not run)

1moein/listentodata documentation built on Nov. 14, 2024, 5:35 p.m.