Description Usage Arguments See Also Examples
View source: R/model-YrsAnnual.R
Attempting here to replicate the approach used for the OK lifetime license study for characterizing particiation over a sportsperson's lifetime. Takes the average number of years (by cohort) that sportspersons held a license, conditional on having held a license in at least one of the selected years.
1 2 3 |
history |
license history table with cust_id, year, age_year |
... |
optional grouping variables |
yrs |
set of years that will be averaged. If NULL, uses the most recent 5 years |
ages |
ages to include, based on first year to be averaged |
age_cohort |
function to estimate age_cohort based on history$birth_year in the first year to be averaged |
Other functions to estimate annual license buying: yrs_avidity
,
yrs_calc
, yrs_fit
,
yrs_lifetime
, yrs_plot
,
yrs_predict_avg
, yrs_predict
,
yrs_result
, yrs_zero
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.