Weighting and Weighted Statistics

Provides a variety of functions for producing simple weighted statistics, such as weighted Pearson's correlations, partial correlations, Chi-Squared statistics, histograms, and t-tests as well as simple weighting graphics including weighted histograms, box plots, bar plots, and violin plots. Also includes software for quickly recoding survey data and plotting estimates from interaction terms in regressions (and multiply imputed regressions) both with and without weights and summarizing various types of regressions. Some portions of this package were assisted by AI-generated suggestions using OpenAI's GPT model, with human review and integration.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("weights")

1.1.2 by Josh Pasek, a year ago


Browse source code at https://github.com/cran/weights


Authors: Josh Pasek [aut, cre] , Alex Tahk [ctb] , Gene Culter [ctb] , Marcus Schwemmle [ctb] , Some code modified from R-core [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Hmisc, mice, gdata, stats, graphics, utils, lme4

Suggests pscl, vioplot, glmnet, nnet, MASS, mgcv


Imported by AMISforInfectiousDiseases, GenericML, PPbigdata, RCPA3, SocialFacts, SuperCell, chartreview, exploratory, ezr, lctools, matchMulti, poliscidata, smacof, smacofx, smicd.

Depended on by anesrake.

Suggested by eatRep, jtools.


See at CRAN