history_check: Checking license history

Description Usage Arguments See Also Examples

Description

These functions can be called following make_history with show_diagnostics = TRUE.

Usage

1
2
3
4
5
history_check_sample(history, n_samp = 3, buy_min = 3, buy_max = 8)

history_check_R3(history, yrs)

history_check_lapse(history)

Arguments

history

data frame: license history table

n_samp

numeric: number of customers to view

buy_min

numeric: minimum number of license purchases for customers to include

buy_max

numeric: maximum number of license purchases for customers to include

yrs

numeric: Years in sales data (column 'year') from which to create license history

See Also

Salic Function Reference: salic

Other license history functions: make_history, rank_sale

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dplyr)
data(sale, lic)
yrs <- 2008:2018

history <- inner_join(lic, sale) %>% 
    rank_sale() %>%
    make_history(yrs, "res", show_diagnostics = TRUE)

history_check_sample(history)
history_check_lapse(history)
history_check_R3(history, 2008:2018)

southwick-associates/salic documentation built on Nov. 5, 2019, 9:13 a.m.