You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version omits all Asian and Other vars in the geo population total computation (because the Asian and Other variable name vectors in vars_ have length > 1). Pr(R|G) calculations are incorrect as a result, and worse in places that have high proportions of Asian and Other individuals.
line 185 in
R/census_helper_v2.R
reads:geoPopulations <- rowSums(census[,names(census) %in% vars_])
The current version omits all Asian and Other vars in the geo population total computation (because the Asian and Other variable name vectors in
vars_
have length > 1). Pr(R|G) calculations are incorrect as a result, and worse in places that have high proportions of Asian and Other individuals.It should read:
geoPopulations <- rowSums(census[,names(census) %in% unlist(vars_)])
The text was updated successfully, but these errors were encountered: