Comparing and Visualizing Differences Between Surveys
Overview
Easily analyze and visualize differences between samples (e.g., benchmark comparisons, nonresponse comparisons in surveys) on three levels. The comparisons can be univariate, bivariate or multivariate. On univariate level the variables of interest of a survey and a comparison survey (i.e. benchmark) are compared, by calculating one of several difference measures (e.g., relative difference in mean), and an average difference between the surveys. On bivariate level a function can calculate significant differences in correlations for the surveys. And on multivariate levels a function can calculate significant differences in model coefficients between the surveys of comparison. All of those differences can be easily plotted and outputted as a table. For more detailed information on the methods and example use see Rohr, B., Silber, H., & Felderer, B. (2024). Comparing the Accuracy of Univariate, Bivariate, and Multivariate Estimates across Probability and Nonprobability Surveys with Population Benchmarks. Sociological Methodology doi:10.1177/00811750241280963.
- Fixed a bug in multivariate comparison where function broke during weighting
- Relabled some default plot labels
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 20
- Examples that run
- 72%13 run in a plain check · 5 never run
- Exported functions with examples
- 95%
- Documented parameters
- 85%
- Return-value docs
- 95%
- Help pages citing references
- 15%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Commits over time
11 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/bjoernrohr/sampcompr on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-14 · The repository has a site deploy workflow
pkgdown site last built 2026-07-14
Show all practicesHide 1 practice
Dependencies
Installing sampcompR adds 95 packages (50 with compiled code, 74 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.3.3Latest
- RR 4.6.0 released · 2026-04-24
- 0.3.2
- 0.3.1.22025-07-04 · diff ↗
- 0.3.1.12025-07-02 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.0
- 0.2.62024-12-08 · diff ↗
- 0.2.42024-11-10 · diff ↗
- unarchivedReturned to CRAN2024-08-19
- 0.2.32024-08-19 · diff ↗
- archivedRemoved from CRAN2024-08-18check problems were not corrected even on re-submission
- 0.2.1
- 0.2.02024-07-12
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-07-12
- Total releases
- 10 / 2 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 35 KB / 1 file
- Download size
- 305 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sampcompR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.