Package: cpsvote 0.1.0
Jay Lee
cpsvote: A Toolbox for Using the CPS’s Voting and Registration Supplement
Provides automated methods for downloading, recoding, and merging selected years of the Current Population Survey's Voting and Registration Supplement, a large N national survey about registration, voting, and non-voting in United States federal elections. Provides documentation for appropriate use of sample weights to generate statistical estimates, drawing from Hur & Achen (2013) <doi:10.1093/poq/nft042> and McDonald (2018) <http://www.electproject.org/home/voter-turnout/voter-turnout-data>.
Authors:
cpsvote_0.1.0.tar.gz
cpsvote_0.1.0.zip(r-4.5)cpsvote_0.1.0.zip(r-4.4)cpsvote_0.1.0.zip(r-4.3)
cpsvote_0.1.0.tgz(r-4.4-any)cpsvote_0.1.0.tgz(r-4.3-any)
cpsvote_0.1.0.tar.gz(r-4.5-noble)cpsvote_0.1.0.tar.gz(r-4.4-noble)
cpsvote_0.1.0.tgz(r-4.4-emscripten)cpsvote_0.1.0.tgz(r-4.3-emscripten)
cpsvote.pdf |cpsvote.html✨
cpsvote/json (API)
# Install 'cpsvote' in R: |
install.packages('cpsvote', repos = c('https://reed-evic.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/reed-evic/cpsvote/issues
- cps_2016_10k - A sample of the raw 2016 CPS dataset
- cps_allyears_10k - A sample of the full CPS dataset
- cps_cols - Sample column specifications for reading CPS data
- cps_factors - Sample factor specifications for reading CPS data
- cps_reweight - Calculations to reweight properly for voter turnout
Last updated 2 years agofrom:18c063722e. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 22 2024 |
R-4.5-win | OK | Nov 22 2024 |
R-4.5-linux | OK | Nov 22 2024 |
R-4.4-win | OK | Nov 22 2024 |
R-4.4-mac | OK | Nov 22 2024 |
R-4.3-win | OK | Nov 22 2024 |
R-4.3-mac | OK | Nov 22 2024 |
Exports:%>%cps_download_datacps_download_docscps_labelcps_load_basiccps_readcps_read_yearcps_recode_votecps_refactorcps_reweight_turnout
Dependencies:bitbit64clicliprcpp11crayondplyrfansiforcatsgenericsgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangstringistringrtibbletidyselecttzdbutf8vctrsvroomwithr
Read Additional CPS Variables
Rendered fromadd-variables.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2020-12-11
Started: 2020-12-11
Background Information and Context
Rendered frombackground.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2020-12-11
Started: 2020-10-06
cpsvote: A Social Science Toolbox for Using the Current Population Survey's Voting and Registration Supplement
Rendered frombasics.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2020-12-11
Started: 2020-10-07
Test Download
Rendered fromtest_download.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2021-01-26
Started: 2021-01-26
Using the CPS and cpsvote to Understand Voting Part 2
Rendered fromvote_method_trends.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2021-04-30
Started: 2020-12-11
Using the CPS and cpsvote to Understand Voting
Rendered fromvoting.Rmd
usingknitr::rmarkdown
on Nov 22 2024.Last update: 2021-01-25
Started: 2020-10-09
Readme and manuals
Help Manual
Help page | Topics |
---|---|
A sample of the raw 2016 CPS dataset | cps_2016_10k |
A sample of the full CPS dataset | cps_allyears_10k |
Sample column specifications for reading CPS data | cps_cols |
Download CPS microdata | cps_download_data |
Download CPS technical documentation | cps_download_docs |
Sample factor specifications for reading CPS data | cps_factors |
Apply factor levels to raw CPS data | cps_label |
load some basic/default CPS data into the environment | cps_load_basic |
Read in CPS data | cps_read |
Load a single CPS file | cps_read_year |
recode the voting variable for turnout calculations | cps_recode_vote |
combine factor levels across years | cps_refactor |
Calculations to reweight properly for voter turnout | cps_reweight |
apply weight correction for voter turnout | cps_reweight_turnout |
vectorized 'na_if' | na_ifin |