surveycore: Core Survey Analysis Infrastructure

A modern, 'S7'-based foundation for survey analysis spanning both probability and non-probability samples. Probability sample designs include Taylor series linearization, replicate weights (BRR, Fay, jackknife, bootstrap), and two-phase estimation, following 'Lumley' (2004) <doi:10.18637/jss.v009.i08>. Non-probability sample designs support bootstrap and jackknife variance estimation for opt-in panels and convenience samples. Provides a unified estimator interface for means, frequencies, totals, quantiles, ratios, correlations, regression, and t-tests, with weighted 'polychoric' and 'polyserial' correlation following 'Mannan' (2025) <doi:10.2139/ssrn.6580480>. A metadata system preserves 'haven'-style variable labels, value labels, and question-preface attributes through all operations, alongside dataset-level metadata that records the survey name, the fielding vendor, and the field period. Uses a 'tidyselect' interface throughout.

Version: 1.2.0
Depends: R (≥ 4.3.0)
Imports: S7 (≥ 0.1.0), rlang (≥ 1.0.0), tidyselect (≥ 1.2.0), cli (≥ 3.6.0), tibble (≥ 3.1.0), dplyr (≥ 1.1.0), marginaleffects (≥ 0.24.0), pbivnorm (≥ 0.6.0), stats, graphics, utils
Suggests: testthat (≥ 3.0.0), withr (≥ 2.5.0), surveytidy (≥ 0.5.0), survey (≥ 4.0), survival, srvyr (≥ 1.0), haven (≥ 2.5.0), lifecycle (≥ 1.0.0), broom (≥ 1.0.0), polycor (≥ 0.8.0), jtools (≥ 2.2.0), labelled (≥ 2.12.0), covr, knitr, rmarkdown
Published: 2026-11-03
DOI: 10.32614/CRAN.package.surveycore
Author: Jacob Dennen ORCID iD [aut, cre, cph], Thomas Lumley [ctb, cph] (Author of variance estimation code vendored from the 'survey' package)
Maintainer: Jacob Dennen <jdenn0514 at gmail.com>
BugReports: https://github.com/JDenn0514/surveycore/issues
License: GPL (≥ 3)
URL: https://github.com/JDenn0514/surveycore, https://jdenn0514.github.io/surveycore/
NeedsCompilation: no
Additional_repositories: https://jdenn0514.r-universe.dev
Citation: surveycore citation info
Materials: README, NEWS
CRAN checks: surveycore results

Documentation:

Reference manual: surveycore.html , surveycore.pdf
Vignettes: Creating Survey Objects in surveycore (source, R code)
Getting Started with surveycore (source, R code)
surveycore vs. survey and srvyr (source, R code)

Downloads:

Package source: surveycore_1.2.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): surveycore_1.2.0.tgz, r-oldrel (arm64): surveycore_1.2.0.tgz, r-release (x86_64): surveycore_1.2.0.tgz, r-oldrel (x86_64): surveycore_1.2.0.tgz
Old sources: surveycore archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=surveycore to link to this page.