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


[Up] [Top]

Documentation for package ‘RCPA4’ version 1.0.0

Help Pages

anes ANES 2024 dataset for R Companion to Political Analysis, Fourth Edition
boxplotC Generates box plots to compare interval-level dependent variable's distribution across categories of independent variable.
CImean Confidence interval of a dataset variable's sample mean in table and figure
CIprop Confidence intervals of a dataset variable's sample proportions in table and figure
compmeansC Mean comparison analysis function, makes controlled comparisons, generates plots, performs ANOVA
correlateC Correlation analysis for two or more numeric variables, with options for scatterplots, weighted observations, and inferential statistics.
crosstabC Cross-tabulation analysis, option for weighting observations, makes controlled comparisons, generates plots, performs Chi-Square test, measures strength of association
debate Debate Experiment dataset for R Companion to Political Analysis, Fourth Edition
describeC Generates table of descriptive statistics for one or more variables in a dataset
freqC Reports the frequency distribution of dataset variable with table and bar chart
getC Imports common dataset file types into R environment
gss GSS 2024 dataset for R Companion to Political Analysis, Fourth Edition
helpC Interactive helper for RCPA4 documentation, examples, resources, plotting references, and settings
histC Creates histogram to show distribution of interval (numeric) variable's values
logregC Logistic regression analysis with options for weighted observations, odds ratio reports, model fit statistics, and plots of residuals
printC Prints table of results to a .html file in local working directory
random.names Backward-compatible alias for random_names().
regC Linear regression analysis (OLS regression), with options for weighted observations, diagnostic tests, and plots of residuals
sampdistC Plots probability and cumulative density functions (PDFs and CDFs) of sample statistics
sortC Sorts dataset observations by user-defined criteria to return case-level information
states States dataset for R Companion to Political Analysis, Fourth Edition
testmeansC One and two-sample difference of means tests (t-tests) with confidence intervals.
testpropsC Tests the difference between two sample proportions, or difference between sample proportion and hypothesized value, with options for weighted observations, confidence intervals
transformC Returns new variables by transforming existing dataset variables (e.g. dummy variables, standardized variables, rank orders)
welcomeC Welcomes users to RCPA4 and confirms that the package is available
widgetFactory An interactive game to practice using R functions.
world World dataset for R Companion to Political Analysis, Fourth Edition