data_distributions#
Read in data distributions.
Functions
Process a location filename. |
|
Process a location filepath. |
|
Calculate the number of age brackets to use by default. |
|
Get census age brackets: depends on the country or source of the age distribution and the contact pattern data. |
|
Create a dict of setting specific age contact matrices. |
|
Get setting specific age contact matrix given sheet name to use. |
|
Define and return default school size distribution brackets. |
|
Define and return default school size distribution for each school type. |
|
Define and return default school types and the age range for each. |
|
Define and return default school type by age by assigning the school type with the highest probability. |
|
Define and return default probabilities of school type for each age. |
|
Get employment rates by age. |
|
Get a dictionary of head age brackets either from the file_path directly, or using the other parameters to figure out what the file_path should be. |
|
Create an array of head of household age bracket counts (column) given by size (row). |
|
A dictionary of the distribution of household sizes. |
|
|
Get size bins for the distribution of resident to staff ratios per facility for Long Term Care Facilities. |
Get size distribution of resident to staff ratios per facility for Long Term Care Facilities. |
|
Get size distribution of residents per facility for Long Term Care Facilities. |
|
Get size bins for the distribution of residents per facility for Long Term Care Facilities. |
|
Get Long Term Care Facility use rates by age for a state. |
|
Return the default number of age brackets. |
|
Get the path relative for the datadir. |
|
Get dictionary of enrollment rates by age. |
|
Get school size brackets: depends on the source/location of the data. |
|
Get distribution of school sizes by size bracket or bin. |
|
Get the school size distribution by school types. |
|
Get a dictionary of the school types and the age range for each for the location specified. |
|
A smoothed dict of the age distribution by single years. |
|
Get the state postal code. |
|
Get workplace size brackets. |
|
Get the distribution of workplace size by brackets. |
|
Loading json object for the location data. |
|
A dict of the age distribution by age brackets. |
|
Process and return a valid name for a location. |