Functionality related to ingesting data from files. Ingesting encompasses loading data from files, parsing data and reformatting data, and processing so they tcan be consumed by typhoidsim or starsim.
A small wrapper of synthpops.people.loaders.get_age_distributon(). This function returns the array of age distribution of ‘location’, in the shape required by starsim People’s age_data keyword argument.
Calculate the contigency table, representing thr probabilities of each combination of household size and head age. The assumption is that household size and household head age are independent.
If they are not independent, then we would need the joint distribution of these two variables which needs to be collected or estimated separately.
A small wrapper of synthpops.people.loaders.get_household_size(). This function returns the average household size for that location. This parameter is necessary when creating a HouseholdNet.