Currently, the check for whether only a single county is suppressed uses county name+state to determine the number of counties in a state per census, but uses fips+state to determine the number of counties in a state for cases. This can lead to some mismatches.
They should both use county name. Please update and test.
|
case_counties_per_state = aggregate(data=subset(data_with_census,county_fips_code != 'NA'), county_fips_code ~ res_state, function(x) length(unique(x))) |
Currently, the check for whether only a single county is suppressed uses county name+state to determine the number of counties in a state per census, but uses fips+state to determine the number of counties in a state for cases. This can lead to some mismatches.
They should both use county name. Please update and test.
covid_case_privacy_review/R/review_public_geo.R
Line 227 in 8fd7356