Learn R Programming

svytest (version 1.1.0)

Survey Weight Diagnostic Tests

Description

Provides diagnostic tests for assessing the informativeness of survey weights in regression models. Implements difference-in-coefficients tests (Hausman 1978 ; Pfeffermann 1993 ), weight-association tests (DuMouchel and Duncan 1983 ; Pfeffermann and Sverchkov 1999 ; Pfeffermann and Sverchkov 2003 ; Wu and Fuller 2005 ), estimating equations tests (Pfeffermann and Sverchkov 2003 ), and non-parametric permutation tests. Includes simulation utilities replicating Wang et al. (2023 ) and extensions.

Copy Link

Version

Install

install.packages('svytest')

Monthly Downloads

142

Version

1.1.0

License

MIT + file LICENSE

Maintainer

Corbin Lubianski

Last Published

October 30th, 2025

Functions in svytest (1.1.0)

svytestCE

Subset of 2015 Consumer Expenditure (CE) Dataset
wa_test

Weight-Association Tests for Survey Weights
wa_DD

DuMouchel-Duncan WA test
wa_PS1

Pfeffermann-Sverchkov Test 1
svytest

svytest: Survey Weight Regression Diagnostics
run_all_diagnostic_tests

Run All Diagnostic Tests for Informative Weights
wa_PS2

Pfeffermann-Sverchkov Test 2
wa_WF

Wu-Fuller test
pred_power_test

Pfeffermann-Nathan Predictive Power Test (svyglm, K-fold CV, fold-mean option) (In production)
estim_eq_test

Estimating Equations Test for Informative Sampling (Linear Case)
perm_test

Permutation test for weight informativeness in survey regression
.coef_mahal_stat

Internal helper: Mahalanobis coefficient distance
plot.perm_test

Plot method for permutation test objects
diff_in_coef_test

Difference-in-Coefficients Test for Survey Weights
.check_full_rank

Internal: check full rank before solving
.wls_fit

Internal helper: Weighted least squares fit
.pred_mean_stat

Internal helper: Predicted mean statistic
.perm_eval_one

Internal helper: Evaluate one permutation
lr_test

Likelihood-Ratio Test for Informative Survey Weights (In production)