yrs_avidity: Estimate a simple avidity measure

Description Usage Arguments See Also Examples

View source: R/model-YrsAnnual.R

Description

Avidity is based on years of license purchases prior to the current year.

Usage

1
yrs_avidity(history, num_yrs = 3, drop_na_yrs = TRUE)

Arguments

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)

See Also

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

Examples

1
2
3
data(all_sports)
x <- yrs_avidity(all_sports)
summary(x$num_years_held)

southwick-associates/lifetime documentation built on Feb. 24, 2020, 9:33 a.m.