{
  "_id": "6adc9744077e75fa285b14c5",
  "Package": "RCPA4",
  "Type": "Package",
  "Title": "Data and Functions for \"An R Companion to Political Analysis,\nFourth Edition\"",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\n\"Barry C.\", \"Edwards\",\nemail = \"bce@uga.edu\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0005-6699-3820\")\n),\nperson(\"Philip H.\", \"Pollock III\", role = \"ctb\")\n)",
  "Description": "Provides teaching-oriented functions and datasets for \"An\nR Companion to Political Analysis, Fourth Edition\" (forthcoming\n2026). Functions produce readable tables and graphics for\ndescriptive statistics, data transformation, confidence\nintervals, hypothesis testing, comparisons, cross-tabulation,\nand linear and logistic regression. Sampling weights are\nsupported where appropriate, and analysis functions return\nreusable results for further examination. The package also\nincludes curated political datasets designed for classroom\ninstruction and independent practice. See Edwards and Pollock\n(forthcoming 2026)\n<https://www.poliscidata.com/textbooks/r_companion_4e.php>.",
  "License": "CC0",
  "URL": "https://www.poliscidata.com/textbooks/r_companion_4e.php",
  "LazyData": "TRUE",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-24 11:25:26 UTC",
    "User": "root"
  },
  "Author": "Barry C. Edwards [aut, cre] (ORCID:\n<https://orcid.org/0009-0005-6699-3820>), Philip H. Pollock III\n[ctb]",
  "Maintainer": "Barry C. Edwards <bce@uga.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-24 11:17:26 UTC",
  "RemoteUrl": "https://github.com/cran/RCPA4",
  "RemoteRef": "HEAD",
  "RemoteSha": "6abd18e647c3351e922b3a2a610d863170ac606f",
  "_user": "cran",
  "_type": "src",
  "_file": "RCPA4_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4ce0ed7d599299dfe41714f51520324af1483b04224a3cfb44970883759f3fb7",
  "_filesize": 2234029,
  "_sha256": "4ce0ed7d599299dfe41714f51520324af1483b04224a3cfb44970883759f3fb7",
  "_expires": "2027-02-01T11:32:18.000Z",
  "_created": "2026-10-24T11:25:26.000Z",
  "_published": "2026-10-24T11:32:20.514Z",
  "_upstream": "https://github.com/cran/RCPA4",
  "_status": "success",
  "_maintainer": {
    "name": "Barry C. Edwards",
    "email": "bce@uga.edu",
    "orcid": "0009-0005-6699-3820"
  },
  "_jobs": [
    {
      "job": 120860231899,
      "time": 341,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12558547979"
    },
    {
      "job": 120860231887,
      "time": 356,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12558498042"
    },
    {
      "job": 120859400765,
      "time": 253,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12558257444"
    },
    {
      "job": 120860231889,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12558926078"
    },
    {
      "job": 120860231892,
      "time": 262,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12559060938"
    },
    {
      "job": 120860231865,
      "time": 294,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12558746071"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414",
  "_commit": {
    "id": "6abd18e647c3351e922b3a2a610d863170ac606f",
    "author": "Barry C. Edwards <bce@uga.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1792840646
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "beepr",
      "role": "Imports"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "haven",
      "role": "Imports"
    },
    {
      "package": "Hmisc",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "hexbin",
      "role": "Suggests"
    },
    {
      "package": "rgl",
      "role": "Suggests"
    },
    {
      "package": "scatterplot3d",
      "role": "Suggests"
    },
    {
      "package": "gdata",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-10-24"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RCPA4"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/RCPA4.html"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-10-24"
    }
  ],
  "_exports": [
    "boxplotC",
    "CImean",
    "CIprop",
    "Colors",
    "compmeansC",
    "correlateC",
    "CramersV",
    "crosstabC",
    "describeC",
    "fit_svyglm",
    "freqC",
    "getC",
    "helpC",
    "histC",
    "inverse_logit",
    "lambda",
    "lineType",
    "logregC",
    "logregR2",
    "orci",
    "pchisqC",
    "plotChar",
    "printC",
    "random_names",
    "random.names",
    "regC",
    "sampdistC",
    "sortC",
    "tablesomersDC",
    "testmeansC",
    "testpropsC",
    "transformC",
    "welcomeC",
    "widgetFactory",
    "wtd_cor",
    "wtd_hist",
    "wtd_kurtosis",
    "wtd_mean",
    "wtd_median",
    "wtd_mode",
    "wtd_quantile",
    "wtd_sd",
    "wtd_skewness",
    "wtd_var"
  ],
  "_datasets": [
    {
      "name": "anes",
      "title": "ANES 2024 dataset for R Companion to Political Analysis, Fourth Edition",
      "object": "anes",
      "class": [
        "data.frame"
      ],
      "fields": [],
      "rows": 5521,
      "table": true,
      "tojson": true
    },
    {
      "name": "debate",
      "title": "Debate Experiment dataset for R Companion to Political Analysis, Fourth Edition",
      "object": "debate",
      "class": [
        "data.frame"
      ],
      "fields": [
        "obs",
        "assignment",
        "tv",
        "debinfo",
        "catholic",
        "issues",
        "integrity",
        "leadership",
        "empathy",
        "sophdum",
        "won",
        "pid",
        "ideology",
        "gender"
      ],
      "rows": 171,
      "table": true,
      "tojson": true
    },
    {
      "name": "gss",
      "title": "GSS 2024 dataset for R Companion to Political Analysis, Fourth Edition",
      "object": "gss",
      "class": [
        "data.frame"
      ],
      "fields": [],
      "rows": 3309,
      "table": true,
      "tojson": true
    },
    {
      "name": "states",
      "title": "States dataset for R Companion to Political Analysis, Fourth Edition",
      "object": "states",
      "class": [
        "data.frame"
      ],
      "fields": [
        "abortion_ban",
        "abortion_legal",
        "abortion_rate",
        "abortlaws_7cat",
        "adv_or_more",
        "alcohol",
        "assault_ban_support",
        "attend_weekly",
        "ba_or_more",
        "ballots24_total",
        "battleground2020",
        "battleground2024",
        "biden2020",
        "black_percent",
        "broadband",
        "carfatal",
        "carry_easier_support",
        "cellular_only",
        "charitable_giving_pc",
        "christian_dominion",
        "christian_foundations",
        "christian_identity",
        "christian_laws",
        "christian_nation",
        "cig_tax",
        "cig_tax_3cat",
        "cigarettes",
        "climate_policies",
        "cn_support",
        "cong119_demshare",
        "cook_pvi_scores",
        "corporal_punishment_banned",
        "corrections_incarc_rate",
        "corrections_total_rate",
        "covid_cases_per1000",
        "covid_deaths_per1000",
        "covid_response_max",
        "covid_response_mean",
        "covid_vaccinated",
        "crime_rate_burglary",
        "crime_rate_murder",
        "crime_rate_overall",
        "crime_rate_property",
        "crime_rate_violent",
        "deathpen_status",
        "defense_expend",
        "democracy_5cat",
        "democracy_score",
        "density",
        "diabetes_death_rate",
        "direct_democracy_tools",
        "division",
        "drug_death_rate",
        "dv_survivor_protections",
        "earmarks_pcap",
        "energy_efficiency_score",
        "fairpoor_health",
        "felon_ineligible24",
        "firearm_death_rate",
        "foreign_born",
        "giffords_grade",
        "giffords_rank",
        "gini",
        "government_workers",
        "governor_party",
        "gun_dealers",
        "gun_deaths_100k",
        "gun_law_strength",
        "gun_murders",
        "gun_ownership",
        "gunsammo_rank",
        "harris2024",
        "hh_income",
        "hispanic_percent",
        "homeless_per_10k",
        "homeownership",
        "homeschool_percent",
        "hs_or_more",
        "income_percapita",
        "infant_mortality",
        "judge_selection",
        "judges_elected",
        "labor_force_percent",
        "land_area",
        "leg_dem_seats",
        "leg_other_seats",
        "leg_rep_seats",
        "lgbtq_equality_5cat",
        "lgbtq_equality_score",
        "lgbtq_nondiscrim",
        "life_expectancy",
        "marijuana_legal_status",
        "median_age",
        "median_gross_rent",
        "median_home_value",
        "medicaid_expansion",
        "minimum_wage",
        "ncaj_attorney_access",
        "ncaj_consumer_debt",
        "ncaj_disability_access",
        "ncaj_fines_fees",
        "ncaj_justice_index",
        "ncaj_language_access",
        "ncaj_self_representation",
        "no_internet",
        "noncitizen24",
        "obesity_percent",
        "online_gambling",
        "online_gambling_legal",
        "opioid_rx_rate",
        "over64",
        "pop_18_24",
        "pop_18_44",
        "population",
        "population_change",
        "pot_policy",
        "poverty_rate",
        "preg_uninten_rate",
        "private_choice_programs",
        "prochoice_percent",
        "protect_immigrants",
        "public_transit",
        "region",
        "relig_import",
        "religiosity",
        "religiosity_3cat",
        "religious_text_weekly",
        "religious_unaffiliated",
        "rent_burdened",
        "renter_percent",
        "right_to_work",
        "same_sex_marriage",
        "schools_avg_salary",
        "schools_spend",
        "schools_st_ratio",
        "smokers",
        "south",
        "speak_english_only",
        "special_ed_funding_supports",
        "state",
        "state_board_fully_elected",
        "state_control",
        "state_govt_rank",
        "state_preK_4yo_pct",
        "state_preK_quality",
        "state_preK_spending_per_child",
        "stateid",
        "stateleg_black",
        "stateleg_dem",
        "stateleg_dem_margin",
        "stateleg_hispanic",
        "stateleg_other",
        "stateleg_prof_rank",
        "stateleg_prof_score",
        "stateleg_rep",
        "stateleg_women",
        "stateleg_women_count",
        "suicide_rate",
        "tax_competitiveness",
        "tax_source",
        "teen_birth_rate",
        "term_limits",
        "trump2020",
        "trump2024",
        "turnout24_change20",
        "turnout24_rank",
        "under18",
        "unemployment",
        "unified_control",
        "uninsured",
        "uninsured_0_64",
        "unionized",
        "universal_school_meals",
        "unsheltered_homeless_pct",
        "urban",
        "vap24",
        "vap24_turnout",
        "vep20_turnout",
        "vep24",
        "vep24_turnout",
        "veteran_percent",
        "volunteer_hrs_pc",
        "volunteer_rate",
        "voter_id_law",
        "white_percent",
        "work_from_home"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "students",
      "title": "Hypothetical Student Directory for An R Companion to Political Analysis, Fourth Edition",
      "object": "students",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id_number",
        "last_name",
        "first_name",
        "gender",
        "campus",
        "athlete",
        "year_born",
        "year_in_school",
        "modality",
        "major"
      ],
      "rows": 1200,
      "table": true,
      "tojson": true
    },
    {
      "name": "world",
      "title": "World dataset for R Companion to Political Analysis, Fourth Edition",
      "object": "world",
      "class": [
        "data.frame"
      ],
      "fields": [],
      "rows": 169,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anes",
      "title": "ANES 2024 dataset for R Companion to Political Analysis, Fourth Edition",
      "topics": [
        "anes"
      ]
    },
    {
      "page": "boxplotC",
      "title": "Generates box plots to compare interval-level dependent variable's distribution across categories of independent variable.",
      "topics": [
        "boxplotC"
      ]
    },
    {
      "page": "CImean",
      "title": "Confidence interval of a dataset variable's sample mean in table and figure",
      "topics": [
        "CImean"
      ]
    },
    {
      "page": "CIprop",
      "title": "Confidence intervals of a dataset variable's sample proportions in table and figure",
      "topics": [
        "CIprop"
      ]
    },
    {
      "page": "compmeansC",
      "title": "Mean comparison analysis function, makes controlled comparisons, generates plots, performs ANOVA",
      "topics": [
        "compmeansC"
      ]
    },
    {
      "page": "correlateC",
      "title": "Correlation analysis for two or more numeric variables, with options for scatterplots, weighted observations, and inferential statistics.",
      "topics": [
        "correlateC"
      ]
    },
    {
      "page": "crosstabC",
      "title": "Cross-tabulation analysis, option for weighting observations, makes controlled comparisons, generates plots, performs Chi-Square test, measures strength of association",
      "topics": [
        "crosstabC"
      ]
    },
    {
      "page": "debate",
      "title": "Debate Experiment dataset for R Companion to Political Analysis, Fourth Edition",
      "topics": [
        "debate"
      ]
    },
    {
      "page": "describeC",
      "title": "Generates table of descriptive statistics for one or more variables in a dataset",
      "topics": [
        "describeC"
      ]
    },
    {
      "page": "freqC",
      "title": "Reports the frequency distribution of dataset variable with table and bar chart",
      "topics": [
        "freqC"
      ]
    },
    {
      "page": "getC",
      "title": "Imports common dataset file types into R environment",
      "topics": [
        "getC"
      ]
    },
    {
      "page": "gss",
      "title": "GSS 2024 dataset for R Companion to Political Analysis, Fourth Edition",
      "topics": [
        "gss"
      ]
    },
    {
      "page": "helpC",
      "title": "Interactive helper for RCPA4 documentation, examples, resources, plotting references, and settings",
      "topics": [
        "helpC"
      ]
    },
    {
      "page": "histC",
      "title": "Creates histogram to show distribution of interval (numeric) variable's values",
      "topics": [
        "histC"
      ]
    },
    {
      "page": "logregC",
      "title": "Logistic regression analysis with options for weighted observations, odds ratio reports, model fit statistics, and plots of residuals",
      "topics": [
        "logregC"
      ]
    },
    {
      "page": "printC",
      "title": "Prints table of results to a .html file in local working directory",
      "topics": [
        "printC"
      ]
    },
    {
      "page": "random.names",
      "title": "Backward-compatible alias for random_names().",
      "topics": [
        "random.names"
      ]
    },
    {
      "page": "regC",
      "title": "Linear regression analysis (OLS regression), with options for weighted observations, diagnostic tests, and plots of residuals",
      "topics": [
        "regC"
      ]
    },
    {
      "page": "sampdistC",
      "title": "Plots probability and cumulative density functions (PDFs and CDFs) of sample statistics",
      "topics": [
        "sampdistC"
      ]
    },
    {
      "page": "sortC",
      "title": "Sorts dataset observations by user-defined criteria to return case-level information",
      "topics": [
        "sortC"
      ]
    },
    {
      "page": "states",
      "title": "States dataset for R Companion to Political Analysis, Fourth Edition",
      "topics": [
        "states"
      ]
    },
    {
      "page": "testmeansC",
      "title": "One and two-sample difference of means tests (t-tests) with confidence intervals.",
      "topics": [
        "testmeansC"
      ]
    },
    {
      "page": "testpropsC",
      "title": "Tests the difference between two sample proportions, or difference between sample proportion and hypothesized value, with options for weighted observations, confidence intervals",
      "topics": [
        "testpropsC"
      ]
    },
    {
      "page": "transformC",
      "title": "Returns new variables by transforming existing dataset variables (e.g. dummy variables, standardized variables, rank orders)",
      "topics": [
        "transformC"
      ]
    },
    {
      "page": "welcomeC",
      "title": "Welcomes users to RCPA4 and confirms that the package is available",
      "topics": [
        "welcomeC"
      ]
    },
    {
      "page": "widgetFactory",
      "title": "An interactive game to practice using R functions.",
      "topics": [
        "widgetFactory"
      ]
    },
    {
      "page": "world",
      "title": "World dataset for R Companion to Political Analysis, Fourth Edition",
      "topics": [
        "world"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "audio",
    "backports",
    "base64enc",
    "beepr",
    "bit",
    "bit64",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "checkmate",
    "cli",
    "clipr",
    "cluster",
    "colorspace",
    "cowplot",
    "cpp11",
    "crayon",
    "data.table",
    "DBI",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "forecast",
    "foreign",
    "Formula",
    "fracdiff",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "haven",
    "highr",
    "Hmisc",
    "hms",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "mime",
    "minqa",
    "mitools",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survey",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tinytex",
    "tzdb",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xfun",
    "yaml",
    "zoo"
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "rcpa4",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-24T11:28:00.000Z",
      "distro": "resolute",
      "commit": "6abd18e647c3351e922b3a2a610d863170ac606f",
      "fileid": "https://r2.ropensci.org/6df763cbabe5df61aeae7759e9d62e5fde9534c3881047d3813a3c6c60847360",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-24T11:28:15.000Z",
      "distro": "resolute",
      "commit": "6abd18e647c3351e922b3a2a610d863170ac606f",
      "fileid": "https://r2.ropensci.org/6b5c28e94a483661417a02902d77062e828af0bb1d9af9b41910cc2fe63bb907",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-24T11:28:01.000Z",
      "commit": "6abd18e647c3351e922b3a2a610d863170ac606f",
      "fileid": "https://r2.ropensci.org/a4e5a8b0df2c8f522da74f9746552bdd12a3502aac685706c88b5af8640e608b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-24T11:26:53.000Z",
      "commit": "6abd18e647c3351e922b3a2a610d863170ac606f",
      "fileid": "https://r2.ropensci.org/001896d93557fd4638fd2314f5d84df727a68362d59058e0e0887531dbeaa088",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-24T11:26:59.000Z",
      "commit": "6abd18e647c3351e922b3a2a610d863170ac606f",
      "fileid": "https://r2.ropensci.org/7d7dc1fda177aa6302615812badb98d37772711f7f169f96480439031bf71b2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40089580414"
    }
  ]
}