Skip to content

sampcompR

Comparing and Visualizing Differences Between Surveys

v0.3.2 · Dec 9, 2025 · GPL-3

Description

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>.

Downloads

246

Last 30 days

18161st

768

Last 90 days

3.3K

Last year

Trend: -3.2% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies boot data.table dplyr forcats furrr future ggplot2 Hmisc lmtest magrittr psych purrr readr reshape2 sandwich +5 more dependencies sampcompR

Version History

new 0.3.2 Mar 10, 2026
updated 0.3.2 ← 0.3.1.2 diff Dec 8, 2025
updated 0.3.1.2 ← 0.3.1.1 diff Jul 3, 2025
updated 0.3.1.1 ← 0.3.0 diff Jul 1, 2025
updated 0.3.0 ← 0.2.6 diff Mar 1, 2025
updated 0.2.6 ← 0.2.4 diff Dec 7, 2024
updated 0.2.4 ← 0.2.3 diff Nov 9, 2024
updated 0.2.3 ← 0.2.1 diff Aug 18, 2024
updated 0.2.1 ← 0.2.0 diff Jul 14, 2024
new 0.2.0 Jul 11, 2024