View source: R/Run_CLV_Analysis.R
Run_CLV_Analysis | R Documentation |
This function conducts a CLV analysis on two csv data files containing data on profit groups and their transition matrix.
Run_CLV_Analysis(
profitgroups_data,
transitionmatrix_data,
discount_rate,
new_customers,
more_customers,
resizepaper = 1.2
)
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? |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.