doi:10.31235/osf.io/c9fkg>.">

blocs: Estimate and Visualize Voting Blocs' Partisan Contributions (original) (raw)

Functions to combine data on voting blocs' size, turnout, and vote choice to estimate each bloc's vote contributions to the Democratic and Republican parties. The package also includes functions for uncertainty estimation and plotting. Users may define voting blocs along a discrete or continuous variable. The package implements methods described in Grimmer, Marble, and Tanigawa-Lau (2023) <doi:10.31235/osf.io/c9fkg>.

Version: 0.1.1
Depends: R (≥ 3.6.0)
Imports: collapse (≥ 1.7.6), dplyr (≥ 1.0.6), ggplot2 (≥ 3.2.0), ks (≥ 1.13.4), mgcv (≥ 1.8.39), rlang (≥ 1.0.0), tibble (≥ 3.0.0)
Suggests: devtools (≥ 2.4.3), questionr (≥ 0.7.7), reldist (≥ 1.7.0), testthat (≥ 3.1.3)
Published: 2023-04-02
DOI: 10.32614/CRAN.package.blocs
Author: Justin Grimmer [aut], Will Marble ORCID iD [aut], Cole Tanigawa-Lau ORCID iD [aut, cre]
Maintainer: Cole Tanigawa-Lau
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README NEWS
CRAN checks: blocs results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=blocsto link to this page.