households#
Functions for generating households
Classes
A class for individual households and methods to operate on each. |
Functions
Add a household to the list of households. |
|
Assign IDs to everyone in order by their households. |
|
Generate a stochastic count of people for each age given the age distribution (age_distr) and number of people to generate (n). |
|
Generate a stochastic count of people for each age given the age distribution (age_distr) and number of people to generate (n). |
|
Generate the ages of those living in households together. |
|
Generate the ages of those living in households together. |
|
Generate the head of household ages conditional on household size and the expected ages of people in the population. |
|
Given a number of people and a household size distribution, generate the number of homes of each size needed to place everyone in a household. |
|
Create a list of the household sizes in random order so that as individuals are placed by age into homes running out of specific ages is not systemically an issue for any given household size unless certain sizes greatly outnumber households of other sizes. |
|
Assign people to households larger than one person (excluding special residences like long term care facilities or agricultural workers living in shared residential quarters). |
|
Generate ages of those living in households of greater than one individual. |
|
Get all households in a list, randomly assorted. |
|
Get household size distribution. |
|
Return household with id: hhid. |
|
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. |
|
Get the id of the head of each household. |
|
Get household sizes for each household in the popdict. |
|
Array of empty households. |
|
Populate all of the households. |