Package: cvpa 0.3.0

Dave Armstrong
cvpa: Canadian Voting and Policy Attitudes
The main focus of the package is to give weighted party support and issue attitudes by demographic groups over time. As of 0.2.0, policy-issue and vote data are read on demand from the cp3 project's hosted Parquet files (see update_cvpa_data()) rather than bundled with the package, covering several hundred policy questions across seven issue domains in addition to vote choice/intention. The vote data are described in Lucas, Romualdi, Armstrong, and Goodyear-Grant (2025) <doi:10.1017/S0008423925000241>.
Authors:
cvpa_0.3.0.tar.gz
cvpa_0.3.0.zip(r-4.7-any)cvpa_0.3.0.zip(r-4.6-any)
cvpa_0.3.0.tar.gz(r-4.7-any)cvpa_0.3.0.tar.gz(r-4.6-any)
cvpa_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cvpa/json (API)
| # Install 'cvpa' in R: |
| install.packages('cvpa', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/lucasjacklucas/cvpa_dataset/issues
- vote_data - Vote Choice/Intention Data
Last updated from:d51bada214. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 181 | ||
| source / vignettes | OK | 233 | ||
| linux-release | OK | 140 | ||
| windows-devel | OK | 225 | ||
| windows-release | OK | 210 | ||
| wasm-release | OK | 110 |
Exports:cvpa_cache_dircvpa_example_urlcvpa_grouping_varsdemographic_varsgap_analysismake_flagquestion_catalogquestion_dataquestion_response_labelsresponse_gap_analysisupdate_cvpa_datawtd_responsewtd_vote
Dependencies:backportsbitbit64broomcellrangerclicliprcpp11crayoncurldata.tabledplyrforcatsforeigngenericsgluehavenhmslifecyclemagrittrnanoparquetpillarpkgconfigprettyunitsprogresspurrrR.methodsS3R.ooR.utilsR6readrreadxlrematchriorlangstringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithrwritexl
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Local cache directory used by cvpa | cvpa_cache_dir |
| URL of the small example dataset bundled with cvpa | cvpa_example_url |
| Grouping variables available for any question | cvpa_grouping_vars |
| Demographic variables available on every question's response data | demographic_vars |
| Analyze Significance of Voting Gaps | gap_analysis |
| Make Reliability Flag for Weighted Proportions Test | make_flag |
| List available policy and vote questions | question_catalog |
| Fetch and decode one question's respondent-level data | question_data |
| Response category labels for one question | question_response_labels |
| Analyze Significance of Response Gaps for any question | response_gap_analysis |
| Download or refresh cvpa's local cache of the cp3 policy-attitude data | update_cvpa_data |
| Vote Choice/Intention Data | vote_data |
| Weighted proportion of each response category, by year and group | wtd_response |
| Make weighted mean of vote intention/choice | wtd_vote |
