Skip to content

sampcompR

Comparing and Visualizing Differences Between Surveys

v0.3.3 · May 28, 2026 · 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

CRAN

488

Last 30 days

7793rd

972

Last 90 days

3.6K

Last year

Trend: +117.9% (30d vs prior 30d)

r2u CRAN

11

Last 30 days

26

Last 90 days

117

Last year

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

CRAN Check Status

13 OK
Show all 13 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-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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘Hmisc’

Package suggested but not available for checking: ‘jtools’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
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

11 tracked
updated 0.3.3 ← 0.3.2 diff May 28, 2026
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