ei_good | R Documentation |
EI iterative estimation via Goodman's Regression
ei_good(data, cand_cols, race_cols, totals_col)
data |
A data.frame() object containing precinct-level turnout data by race and candidate |
cand_cols |
A character vector listing the column names for turnout for each candidate |
race_cols |
A character vector listing the column names for turnout by race |
totals_col |
The name of the column containing total votes cast in each precinct |
matrix with precinct results, columns = race groups, rows = candidates
Loren Collingwood <loren.collingwood@ucr.edu>
Ari Decter-Frain <agd75@cornell.edu>
eiPack King et. al. (http://gking.harvard.edu/eiR)
L. A. Goodman. Ecological regressions and behavior of individuals. American Sociological Review, 1953.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.