Package: sampcompR 0.3.4

sampcompR: Comparing and Visualizing Differences Between Surveys

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

Authors:Bjoern Rohr [aut, cre, cph], Barbara Felderer [aut]

sampcompR_0.3.4.tar.gz
sampcompR_0.3.4.zip(r-4.7-any)sampcompR_0.3.4.zip(r-4.6-any)sampcompR_0.3.4.zip(r-4.5-any)
sampcompR_0.3.4.tgz(r-4.6-any)sampcompR_0.3.4.tgz(r-4.5-any)
sampcompR_0.3.4.tar.gz(r-4.7-any)sampcompR_0.3.4.tar.gz(r-4.6-any)
sampcompR_0.3.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
sampcompR/json (API)

# Install 'sampcompR' in R:
install.packages('sampcompR', repos = c('https://bjoernrohr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bjoernrohr/sampcompr/issues

Pkgdown/docs site:https://bjoernrohr.github.io

Datasets:

On CRAN:

Conda:

4.15 score 4 stars 5 scripts 427 downloads 19 exports 106 dependencies

Last updated from:e64bda4987. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK169
source / vignettesOK278
linux-release-x86_64OK197
macos-release-arm64OK124
macos-oldrel-arm64OK122
windows-develOK179
windows-releaseOK134
windows-oldrelOK145
wasm-releaseOK145

Exports:biv_bias_per_variablebiv_comparebiv_compare_tablebiv_per_variablecarddataequalizerdescriptive_tableheatmap_biv_comparemissing_tablemulti_comparemulti_compare_mergemulti_compare_tablemulti_per_variableplot_biv_compareplot_multi_compareplot_uni_compareR_indicatoruni_compareuni_compare_table

Dependencies:backportsbase64encbitbit64bootbslibcachemcheckmateclicliprclustercodetoolscolorspacecpp11crayondata.tableDBIdigestdplyrevaluatefarverfastmapfontawesomeforcatsforeignFormulafsfurrrfuturegenericsggplot2globalsglueGPArotationgridExtragtablehighrHmischmshtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelistenvlmtestlpSolvemagrittrMASSMatrixmemoisemimeminqamitoolsmnormtmvtnormnlmennetnumDerivparallellypillarpkgconfigplyrprettyunitsprogresspsychpurrrR6rappdirsRColorBrewerRcppRcppArmadilloreadrreshape2rlangrmarkdownrpartrstudioapiS7samplingsandwichsassscalesstringistringrsurveysurvivalsvreptibbletidyrtidyselecttinytextzdbutf8vctrsviridisLitevroomwithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Returns a table based on the information of a 'biv_compare_object' that indicates the Average Absolute Bias (AARB) in Pearson's r or the Average Absolute Relative Bias (AARB) in Pearson's r for every data frame It can be outputted as HTML or LaTex Table, for example with the help of the stargazer function.biv_bias_per_variable
Compare Multiple Data Frames on a Bivariate Levelbiv_compare
Returns a table based on the information of a 'biv_compare_object' which can be outputted as HTML or LaTex Table, for example with the help of the stargazer function.biv_compare_table
Returns a table based on the information of a 'biv_compare_object' that indicates the proportion of biased variables. It can be outputted as HTML or LaTex Table, for example with the help of the stargazer function.biv_per_variable
cardcard
Equalize dataframesdataequalizer
Get a Descriptive Table for Every Data Framedescriptive_table
Plot Difference or Relative Difference in Pearson's r for Multiple Data Framesheatmap_biv_compare
Returns a Table indicating the number and proportion of NA values for a selected set of variables.missing_table
Compares data frames using different regression methods.multi_compare
Combine multi_compare_objectsmulti_compare_merge
Create an Output-Table of a multi_compare_objectmulti_compare_table
Returns a table based on the information of a 'multi_compare_object' that indicates the proportion of biased variables. It can be outputted as HTML or LaTex Table, for example with the help of the stargazer function.multi_per_variable
Plot Comparison of Multiple Data Frames on a Bivariate Levelplot_biv_compare
Plot Multiple multi_compare_objectsplot_multi_compare
plot univar dataplot_uni_compare
Calculate the R-IndicatorR_indicator
sampcompR: A package for the comparison of samplessampcompR
Compare data frames and Plot Differencesuni_compare
Create an Output-Table of a uni_compare_objectuni_compare_table