NYCPlanning / db-acs

American Community Survey data processing for Population Fact Finder
4 stars 1 forks source link

Check that all instances of collapsing variables is summing independent variables #24

Open mgraber opened 4 years ago

mgraber commented 4 years ago

The function get_m in 03_calculation.py assumes that the two variables being collapsed are independent. For example, creating a variable describing the count of 70-74 year olds by summing counts of male 70-74 year olds and female 70-74 year olds is an appropriate usage since these are mutually exclusive.

Check the _meta_lookup.json files to make sure that this is consistently the case.