Description Usage Arguments See Also Examples
View source: R/model-YrsAnnual.R
Avidity is based on years of license purchases prior to the current year.
1 | yrs_avidity(history, num_yrs = 3, drop_na_yrs = TRUE)
|
history |
license history table (1 row per customer per year) |
num_yrs |
number of years to use for defining avidity |
drop_na_yrs |
if TRUE, records for the years in which avidity can't be calculated will be dropped (e.g., drops first 3 years by default) |
Other functions to estimate annual license buying: yrs_calc_avg
,
yrs_calc
, yrs_fit
,
yrs_lifetime
, yrs_plot
,
yrs_predict_avg
, yrs_predict
,
yrs_result
, yrs_zero
1 2 3 | data(all_sports)
x <- yrs_avidity(all_sports)
summary(x$num_years_held)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.