Description Usage Arguments Value
A convenience function - calculates the likelihood of observing the provided data under each mixing structure provided in estimate_age_mixing. See mixageestimate_age_mixing for more details.
1 2  | best_age_mixing(choice_data, start_ages, max_age = 74,
  age_distribution = NULL)
 | 
choice_data | 
 a dataframe with chooser age, partner age, sex, and optional survey weights. 
These columns should be named   | 
start_ages | 
 vector of the youngest ages included in each age group. 
If   | 
max_age | 
 The non-inclusive right-hand endpoint of the oldest age group within the model population. Default is 74, so if the oldest age group begins at 60, the age interval is 60-73. Must be less than or equal to 100.  | 
age_distribution | 
 Optional: a vector of length   | 
A list with the following elements:
all_AIC: the Akaike information criterion for each model
best_structure: the best-fitting model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.