yrs_predict_avg: Predict license buying - years by age

Description Usage Arguments See Also Examples

View source: R/model-YrsAnnual.R

Description

To be run following yrs_calc_avg. Converts the output of that function to a scale comparable to a retention curve

Usage

1
2
3
yrs_predict_avg(avg_yrs, ..., num_yrs = 5, age_cohort = function(x) {  
    cut(x, c(-Inf, 15, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, Inf)) },
  start_age = 31, end_age = 64, method = "years_by_age")

Arguments

avg_yrs

data frame returned by yrs_calc_avg

...

optional grouping variables

num_yrs

number of years used in avg_yrs

age_cohort

function to estimate age_cohort based on history$birth_year in the first year to be averaged

start_age

starting age for years_since = 0

end_age

last age to include

method

character name of method used (for plotting)

See Also

Other functions to estimate annual license buying: yrs_avidity, yrs_calc_avg, yrs_calc, yrs_fit, yrs_lifetime, yrs_plot, yrs_predict, yrs_result, yrs_zero

Examples

1
2
3

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