Data and Functions for "An R Companion to Political Analysis, Fourth Edition"

Provides teaching-oriented functions and datasets for "An R Companion to Political Analysis, Fourth Edition" (forthcoming 2026). Functions produce readable tables and graphics for descriptive statistics, data transformation, confidence intervals, hypothesis testing, comparisons, cross-tabulation, and linear and logistic regression. Sampling weights are supported where appropriate, and analysis functions return reusable results for further examination. The package also includes curated political datasets designed for classroom instruction and independent practice. See Edwards and Pollock (forthcoming 2026) < https://www.poliscidata.com/textbooks/r_companion_4e.php>.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RCPA4")

1.0.0 by Barry C. Edwards, 9 hours ago


https://www.poliscidata.com/textbooks/r_companion_4e.php


Browse source code at https://github.com/cran/RCPA4


Authors: Barry C. Edwards [aut, cre] (ORCID: , Philip H. Pollock III [ctb]


Documentation:   PDF Manual  


CC0 license


Imports beepr, car, graphics, grDevices, haven, Hmisc, knitr, lmtest, methods, stats, survey, utils

Suggests hexbin, rgl, scatterplot3d, gdata, testthat


See at CRAN