generate_larger_households_fixed_ages#
- generate_larger_households_fixed_ages(larger_hh_size_array, larger_hha_chosen, hha_brackets, cm_age_brackets, cm_age_by_brackets, household_matrix, ages_left_to_assign, homes_dic)[source]#
Assign people to households larger than one person (excluding special residences like long term care facilities or agricultural workers living in shared residential quarters).
- Parameters:
hh_sizes (array) – The count of household size s at index s-1.
hha_by_size (matrix) – A matrix in which each row contains the age distribution of the reference person for household size s at index s-1.
hha_brackets (dict) – The age brackets for the heads of household.
cm_age_brackets (dict) – The age brackets for the contact matrix.
cm_age_by_brackets (dict) – A dictionary mapping age to the age bracket range it falls within.
household_matrix (dict) – The age-specific contact matrix for the household ontact setting.
ages_left_to_assign (dict) – Age count of people left to place in households larger than one person.
- Returns:
A dictionary of households by age indexed by household size.
- Return type:
dict