Package: robsurvey 0.7-3

robsurvey: Robust Survey Statistics Estimation

Robust (outlier-resistant) estimators of finite population characteristics like of means, totals, ratios, regression, etc. Available methods are M- and GM-estimators of regression, weight reduction, trimming, and winsorization. The package extends the 'survey' <https://CRAN.R-project.org/package=survey> package.

Authors:Beat Hulliger [aut], Tobias Schoch [aut, cre], Martin Sterchi [ctr, com], R-core [ctb, cph]

robsurvey_0.7-3.tar.gz
robsurvey_0.7-3.zip(r-4.7)robsurvey_0.7-3.zip(r-4.6)robsurvey_0.7-3.zip(r-4.5)
robsurvey_0.7-3.tgz(r-4.6-x86_64)robsurvey_0.7-3.tgz(r-4.6-arm64)robsurvey_0.7-3.tgz(r-4.5-x86_64)robsurvey_0.7-3.tgz(r-4.5-arm64)
robsurvey_0.7-3.tar.gz(r-4.7-arm64)robsurvey_0.7-3.tar.gz(r-4.7-x86_64)robsurvey_0.7-3.tar.gz(r-4.6-arm64)robsurvey_0.7-3.tar.gz(r-4.6-x86_64)
robsurvey_0.7-3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
robsurvey/json (API)

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

Bug tracker:https://github.com/tobiasschoch/robsurvey/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:
  • counties - Data on a Simple Random Sample of 100 Counties in the U.S.
  • flour - Measurement of Copper Content in Wholemeal Flour
  • losdata - Length-of-Stay (LOS) Hospital Data
  • MU284pps - PPS Sample From the MU284 Population
  • MU284strat - Stratified Sample from the MU284 Population
  • workplace - (Modified) Canadian Workplace and Employee Survey

On CRAN:

Conda:

openblas

5.73 score 9 stars 7 scripts 247 downloads 60 exports 11 dependencies

Last updated from:7a0aca84a3. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK183
linux-devel-x86_64OK149
source / vignettesOK160
linux-release-arm64OK145
linux-release-x86_64OK154
macos-release-arm64OK139
macos-release-x86_64OK269
macos-oldrel-arm64OK144
macos-oldrel-x86_64OK186
windows-develOK144
windows-releaseOK121
windows-oldrelOK130
wasm-releaseOK107

Exports:huber2huberWgtmermsepps_drawpps_probabilitiesrobweightsSE.svyreg_robSE.svystat_robsimpsonWgtsvymean_dalensvymean_hubersvymean_k_winsorizedsvymean_ratiosvymean_regsvymean_trimmedsvymean_tukeysvymean_winsorizedsvyratio_hubersvyratio_tukeysvyregsvyreg_controlsvyreg_hubersvyreg_huberGMsvyreg_huberMsvyreg_tukeysvyreg_tukeyGMsvyreg_tukeyMsvysummarysvytotal_dalensvytotal_hubersvytotal_k_winsorizedsvytotal_ratiosvytotal_regsvytotal_trimmedsvytotal_tukeysvytotal_winsorizedtukeyWgtweighted_IQRweighted_lineweighted_madweighted_meanweighted_mean_dalenweighted_mean_huberweighted_mean_k_winsorizedweighted_mean_trimmedweighted_mean_tukeyweighted_mean_winsorizedweighted_medianweighted_median_lineweighted_median_ratioweighted_quantileweighted_totalweighted_total_dalenweighted_total_huberweighted_total_k_winsorizedweighted_total_trimmedweighted_total_tukeyweighted_total_winsorizedwithin_tolerance

Dependencies:DBIKernSmoothlatticeMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival

Vignette: Basic Robust Estimators
Outline | Estimating methods | Population characteristics | Type of implementation | Preparations | 1 LOS (Length-of-stay) Hospital Data | 1.1 Survey design object | 1.2 Exploring the data | 2 Trimming | 2.1 Bare-bone methods | 2.2 Survey methods | 3 Winsorization | 3.1 Bare-bone methods | 3.2 Survey methods | 4 Weight Reduction Methods | 4.2 Survey methods | 5 M-Estimation | 5.1 Bare-bone methods | 5.2 Survey methods | 5.3 Adaptive estimation | 6 Utility Functions | 6.1 Weighted quantile and median | 6.2 Weighted MAD: median absolute deviation | 6.3 Weighted IQR: interquartile range | Notes | Bibliographical notes | References

Last update: 2024-01-13
Started: 2021-05-12

Vignette: Robust Generalized Regression (GREG) and Ratio Prediction/ Estimation
Outline | 1 Preparations | 2 Robust ratio prediction | 2.1 Ratio predictor | 2.2 Robust ratio predictor | 3 Robust generalized regression prediction | 3.1 GREG | 3.2 Robust GREG | References

Last update: 2024-01-13
Started: 2022-08-24

Vignette: Robust Horvitz-Thompson Estimator
Outline | 1. Workplace Data | 1.1 Survey design object | 1.2 Exploring the data | 2 Robust Horvitz-Thompson Estimator | 2.1 Bare-bone methods | 2.2 Survey methods | 2.3 Adaptive estimation | References

Last update: 2024-01-13
Started: 2021-05-12

Vignette: Robust Survey Regression
Outline | 1 Preparations | 1.2 Goal | 1.3 Sampling design | 1.4 Exploring the data | 2 Design-based inference | 2.1 Heteroscedasticity | 2.2 Regression M-estimator | 2.3 Regression GM-estimator | Preparation | Robust Mahalanobis distances | Regression estimation and inference | 3 Model-based inference | 4 Compound design- and model-based inference | 4.1 The MU284 population | 4.2 Model fit and statistical inference | References

Last update: 2024-01-13
Started: 2021-09-04

Readme and manuals

Help Manual

Help pageTopics
Package Overviewrobsurvey-package robsurvey
Utility Functions for Objects of Class svyreg_robclass_svyreg_rob coef.svyreg_rob fitted.svyreg_rob plot.svyreg_rob print.svyreg_rob residuals.svyreg_rob robweights.svyreg_rob SE.svyreg_rob summary.svyreg_rob svyreg_rob vcov.svyreg_rob
Utility Functions for Objects of Class svystat_robclass_svystat_rob coef.svystat_rob confint.svystat_rob fitted.svystat_rob mse mse.svystat mse.svystat_rob print.svystat_rob residuals.svystat_rob robweights robweights.svystat_rob scale.svystat_rob SE.svystat_rob summary.svystat_rob svystat_rob vcov.svystat_rob
Data on a Simple Random Sample of 100 Counties in the U.S.counties
Measurement of Copper Content in Wholemeal Flourflour
Weighted Huber Proposal 2 Estimatorhuber2
Length-of-Stay (LOS) Hospital Datalosdata
Minimum Estimated Risk (MER) M-Estimatormer
PPS Sample From the MU284 PopulationMU284pps
Stratified Sample from the MU284 PopulationMU284strat
Sampling with probability proportional to size (pps without replacement)pps_draw pps_probabilities print.prob_pps
Deprecated Functions in Package 'robsurvey'robsurvey-deprecated
Internal Function for the Regression GM-Estimatorrobsvyreg svyreg_control
Dalen's Estimators of the Population Mean and Totalsvymean_dalen svytotal_dalen
Robust Ratio Predictor of the Mean and Totalsvymean_ratio svytotal_ratio
Robust Generalized Regression Predictor (GREG) of the Mean and Totalsvymean_reg svytotal_reg
Weighted Trimmed Mean and Totalsvymean_trimmed svytotal_trimmed
Weighted Winsorized Mean and Totalsvymean_k_winsorized svymean_winsorized svytotal_k_winsorized svytotal_winsorized
Weighted Huber and Tukey Mean and Total (M-Estimator) - Robust Horvitz-Thompson Estimatorsvymean_huber svymean_tukey svytotal_huber svytotal_tukey
Robust Survey Ratio M-Estimatorsvyratio_huber svyratio_tukey
Survey Regression Estimator - Weighted Least Squaressvyreg
Deprecated Huber Robust Survey Regression M-Estimatorsvyreg_huber
Huber Robust Survey Regression M- and GM-Estimatorsvyreg_huberGM svyreg_huberM
Deprecated Tukey Biweight Robust Survey Regression M-Estimatorsvyreg_tukey
Tukey Biweight Robust Survey Regression M- and GM-Estimatorsvyreg_tukeyGM svyreg_tukeyM
Weighted Five-Number Summary of a Variablesvysummary
Weighted Interquartile Range (IQR)weighted_IQR
Weighted Robust Line Fittingcoef.medline fitted.medline print.medline residuals.medline weighted_line
Weighted Median Absolute Deviation from the Median (MAD)weighted_mad
Weighted Total and Mean (Horvitz-Thompson and Hajek Estimators)weighted_mean weighted_total
Dalen Estimators of the Mean and Totalweighted_mean_dalen weighted_total_dalen
Weighted Trimmed Mean and Total (bare-bone functions)weighted_mean_trimmed weighted_total_trimmed
Weighted Winsorized Mean and Total (bare-bone functions)weighted_mean_k_winsorized weighted_mean_winsorized weighted_total_k_winsorized weighted_total_winsorized
Weighted Medianweighted_median
Robust Simple Linear Regression Based on Mediansweighted_median_line
Weighted Robust Ratio Estimator Based on Medianweighted_median_ratio
Weighted Quantileweighted_quantile
Weighted Huber and Tukey Mean and Total (bare-bone functions)weighted_mean_huber weighted_mean_tukey weighted_total_huber weighted_total_tukey
Weight Functions (for the M- and GM-Estimators)huberWgt simpsonWgt tukeyWgt
Tolerance Intervalwithin_tolerance
(Modified) Canadian Workplace and Employee Surveyworkplace