Weighting and Weighted Statistics
Overview
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.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 25
- Examples that run
- 100%23 run in a plain check
- Exported functions with examples
- 96%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing weights adds 94 packages (51 with compiled code, 78 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Show all 18 packagesHide all 18 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- removedRemoved from CRAN2012-09-07copyright violation
- 2.15.2Latest
Show 22 earlier eventsHide 22 earlier events
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- 2.13.22011-08-11 · diff ↗ ·
added 10 exports
wtd.hist, wtd.chi.sq, wtd.t.test, wtd.cor, nalevs, dummify, wpct, starmaker, stdz, rd - RR 2.13.0 released · 2011-04-13
- 2.13.02011-02-26 · diff ↗
- 1.1.2
- 1.1.12025-06-10 · diff ↗ ·
added 13 exports
coeffer, findn, onetable, wtd.anova, wtd.barplot, wtd.boxplot, wtd.cov, wtd.partial.cor, wtd.partial.cov, wtd.median, wtd.quantile, wtd.violinplot, wtd.xtab - 1.0.42021-06-10 · diff ↗
- 1.0.32021-06-09 · diff ↗
- 1.0.22021-05-27 · diff ↗ ·
added 6 exports
findwtdinteraction.lmerMod, findwtdinteraction.list, findwtdinteraction.multinom, plotinteractpreds.default, plotinteractpreds.interactpreds, plotinteractpreds.interactpredsmnl - 1.0.12020-02-12 · diff ↗
- 1.02018-10-17 · diff ↗
- 0.902018-04-27 · diff ↗
- 0.852016-02-12 · diff ↗ ·
added 5 exports
findwtdinteraction, plotwtdinteraction, plotinteractpreds, findwtdinteraction.mira, findwtdinteraction.default - 0.80
- 0.75
- 0.72
- 0.712011-12-21 · diff ↗
- 0.70
- 0.652011-04-28 · diff ↗
- 0.62011-03-05
- RR 2.12.0 released · 2010-10-15
Package metadata
- First published
- 2011-02-26
- Total releases
- 19 / 15 yrs
- License
- GPL (>= 2) OSI
- Bundled data
- 4.2 KB / 1 file
- Download size
- 47 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("weights")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.