Package: robsurvey 0.7

Tobias Schoch

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.tar.gz
robsurvey_0.7.tar.gz(r-4.5-noble)robsurvey_0.7.tar.gz(r-4.4-noble)
robsurvey_0.7.tgz(r-4.4-emscripten)robsurvey_0.7.tgz(r-4.3-emscripten)
robsurvey.pdf |robsurvey.html
robsurvey/json (API)
NEWS

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

Peer review:

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

Uses libs:
  • openblas– Optimized BLAS
Datasets:
  • MU284pps - PPS Sample From the MU284 Population
  • MU284strat - Stratified Sample from the MU284 Population
  • 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
  • workplace - (Modified) Canadian Workplace and Employee Survey

openblas

2.90 score 5 scripts 251 downloads 59 exports 11 dependencies

Last updated 4 months agofrom:9c165c441a. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 21 2024
R-4.5-linux-x86_64OKDec 21 2024

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_winsorized

Dependencies:DBIKernSmoothlatticeMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival

Vignette: Basic Robust Estimators

Rendered frombasic.Rmdusingknitr::rmarkdownon Dec 21 2024.

Last update: 2024-01-15
Started: 2022-01-17

Vignette: Robust Generalized Regression (GREG) and Ratio Prediction/ Estimation

Rendered fromgreg.Rmdusingknitr::rmarkdownon Dec 21 2024.

Last update: 2024-01-15
Started: 2022-09-08

Vignette: Robust Horvitz-Thompson Estimator

Rendered fromrht.Rmdusingknitr::rmarkdownon Dec 21 2024.

Last update: 2024-01-15
Started: 2022-01-17

Vignette: Robust Survey Regression

Rendered fromregression.Rmdusingknitr::rmarkdownon Dec 21 2024.

Last update: 2024-01-15
Started: 2022-01-17

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 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
(Modified) Canadian Workplace and Employee Surveyworkplace