wru icon indicating copy to clipboard operation
wru copied to clipboard

Error result when voter file populations are located in zero population tracts

Open csfowler opened this issue 9 months ago • 16 comments

There are special tracts (often with tract id codes in the 98---- range) that denote low population areas like airports, water bodies, parks, etc (census documentation here https://www2.census.gov/geo/pdfs/partnerships/psap/G-650.pdf). People can still live here (and they do), but especially with differential privacy there is a good chance these tracts show as zero population. I am running a voter file that breaks because the assigned race probability for other is NaN. Essentially the zero value gets passed all through the other racial categories and then breaks when the pr.other value is being calculated. To be clear, these are people located within valid census geographies, so skip.bad.geos doesn't move past them. I have to believe that this happens with some regularity at the smaller geographies as well. I would hope that the non-exclusion component that gets added in the fBISG framework would handle this possibility, but it seems to break on this use case. I am running into the problem using North Carolina data from L2 which I think was used to test the package initially anyway, so maybe a solution already exists?

csfowler avatar May 23 '24 17:05 csfowler