RPVote / eiCompare

Comparing ecological inference techniques
https://rpvote.github.io/voting-rights/
6 stars 7 forks source link

Update predict race wrapper function to handle NAs #34

Closed pssachdeva closed 4 years ago

pssachdeva commented 4 years ago

The bisg_prep_race_predict function currently takes any NA values outputted by BISG, and sets them equal to zero.

The WRU predict_race function outputs NA only when geographic data can't be found for a Census block. Thus, a workaround for this, instead of setting values equal to zero, is to re-run BISG at a higher Census geographic area (tract for block, county for tract, etc.).

pssachdeva commented 4 years ago

Closed by #37.