Package: blocs 0.1.1.9000
blocs: Estimate and Visualize Voting Blocs' Partisan Contributions
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 (2022) <doi:10.31235/osf.io/c9fkg>.
Authors:
blocs_0.1.1.9000.tar.gz
blocs_0.1.1.9000.zip(r-4.5)blocs_0.1.1.9000.zip(r-4.4)blocs_0.1.1.9000.zip(r-4.3)
blocs_0.1.1.9000.tgz(r-4.4-any)blocs_0.1.1.9000.tgz(r-4.3-any)
blocs_0.1.1.9000.tar.gz(r-4.5-noble)blocs_0.1.1.9000.tar.gz(r-4.4-noble)
blocs_0.1.1.9000.tgz(r-4.4-emscripten)blocs_0.1.1.9000.tgz(r-4.3-emscripten)
blocs.pdf |blocs.html✨
blocs/json (API)
NEWS
# Install 'blocs' in R: |
install.packages('blocs', repos = c('https://coletl.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/coletl/blocs/issues
- anes - Sample of 2020 ANES cumulative data file
Last updated 1 years agofrom:e21463829c. Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 15 2024 |
R-4.5-win | NOTE | Nov 15 2024 |
R-4.5-linux | NOTE | Nov 15 2024 |
R-4.4-win | NOTE | Nov 15 2024 |
R-4.4-mac | NOTE | Nov 15 2024 |
R-4.3-win | OK | Nov 15 2024 |
R-4.3-mac | OK | Nov 15 2024 |
Exports:vb_continuousvb_differencevb_discretevb_plotvb_summaryvb_uncertaintyvbdfwtd_table
Dependencies:clicollapsecolorspacedplyrfansifarverFNNgenericsggplot2gluegtableisobandkernlabKernSmoothkslabelinglatticelifecyclemagrittrMASSMatrixmclustmgcvmulticoolmunsellmvtnormnlmepillarpkgconfigpracmaR6RColorBrewerRcpprlangscalestibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Sample of 2020 ANES cumulative data file | anes |
Validator for class vbdf | check_vbdf |
Estimate density | estimate_density |
Constructor for class vbdf | new_vbdf |
Constructor for vbdf summaries | new_vbsum |
Continuous voting bloc analysis | vb_continuous |
Calculate differences in bloc contributions | vb_difference |
Discrete voting bloc analysis | vb_discrete |
Plot the summary of a voting bloc analysis | vb_plot |
Summarize uncertainty for a vbdf objects | vb_summary vb_uncertainty |
Create a vbdf object | vbdf |
Weighted frequency table or proportions | wtd_table |