Outlier-resistant survey estimation with R (joint work with Beat Hulliger and Martin Sterchi)
robsurvey implements the following methods for outlier-resistant regression, and the robust estimation of the population total and mean for finite populations:
R package survey (Lumley, 2004, 2010).
weighted_mean_ or weighted_total_ and one of the suffixes (methods):
dalen(x, w, censored, na.rm = FALSE, verbose = TRUE, info = FALSEtrimmed(x, w, LB = 0.05, UB = 1 - LB, info = FALSE, na.rm = FALSE)winsorized(x, w, LB = 0.05, UB = 1 - LB, info = FALSE, na.rm = FALSE)k_winsorized(x, w, k, na.rm = FALSE, simple_var = FALSE)huber(x, w, k, type = "rwm", na.rm = FALSE)tukey(x, w, k, type = "rwm", na.rm = FALSE)x is a numeric variable and w is the weight.
svymean_ or svyotal_ and one of the suffixes (methods):
dalen(x, design, censored, na.rm = FALSE, verbose = TRUE, info = FALSEtrimmed(x, design, LB = 0.05, UB = 1 - LB, info = FALSE, na.rm = FALSE)winsorized(x, design, LB = 0.05, UB = 1 - LB, info = FALSE, na.rm = FALSE)k_winsorized(x, design, k, na.rm = FALSE, simple_var = FALSE)huber(x, design, k, type = "rwm", na.rm = FALSE)tukey(x, design, k, type = "rwm", na.rm = FALSE)x is a formula object, and design is a design object (see documentation).
svyreg_ and one of the suffixes / methods:
huberM(formula, design, k, var = NULL, na.rm = FALSE, ...)huberGM(formula, design, k, type, xwgt, var = NULL, na.rm = FALSE, ...)tukeyM(formula, design, k, var = NULL, na.rm = FALSE, ...)tukeyGM(formula, design, k, type, xwgt, var = NULL, na.rm = FALSE, ...)x is a formula object, design is a design object (see documentation), and type is "mallows" or "schweppe".
svymean_reg(object, mean_auxiliary, type, k, ...)svytotal_reg(object, total_auxiliary, type, k, ...)object is an estimated regression model, and type specifies one of the following GREG types: "projective", "ADU", "robust", "lee", "BR" or "duchesne"; see package documentation for more details.