get_household_head_ages_by_size#
- get_household_head_ages_by_size(pop)[source]#
Calculate the count of households by size and the age of the head of the household, assuming the minimal household members id is the id of the head of the household.
- Parameters:
pop (sp.Pop) – population object
- Returns:
An array with rows as household size and columns as household head age brackets.
- Return type:
np.ndarray