Skip to content

weights

1.1.2Package record

Weighting and Weighted Statistics

16packages dependsuggested by 2
134.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.2
READMENoVignettesNoNEWSYes · 33% structuredCitation fileNoWebsitenot declared in DESCRIPTION
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

134.1K
CRAN downloads in the past year
Rank #1,134 · ~367/day · ~11.2K/mo
Daily download trend is not available in this view yet.
11K30 days
31.1K90 days
134.1K1 year
Compare downloads with other packages →
Also on1.1K r2u7 autocran4.8K conda_forge289 c2d4u

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

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.

Depends (0)
none
Imports (7)
Hmiscmicegdatastatsgraphicsutilslme4
LinkingTo (0)
none
Suggests (6)
psclvioplotglmnetnnetMASSmgcv
Enhances (0)
none
Reverse dependencies
16direct
27indirect
Depends 1 · Imports 15
Suggested by 2
Show all 18 packagesHide all 18 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (5)
Author, Maintainer since 0.6 (2011)
Contributor · added in 2.15.2
Contributor · added in 1.1.1
Contributor · added in 1.1.1
Listed in earlier versions (2)
Marcus Schwemmle.
no longer listed · 2.15.2 to 1.0.4
with some assistance from Alex Tahk
no longer listed · 2.15.2 to 1.0.4
Releases (19)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • removedRemoved from CRAN
    2012-09-07
    copyright violation
  • 2.15.2Latest
    record
    2012-08-03 · current release · diff ↗ ·
    added 1 export
    wtd.cors
Show 22 earlier eventsHide 22 earlier events
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 2.13.2
    record
    2011-08-11 · diff ↗ ·
    added 10 exports
    wtd.hist, wtd.chi.sq, wtd.t.test, wtd.cor, nalevs, dummify, wpct, starmaker, stdz, rd
  • R
    R 2.13.0 released · 2011-04-13
  • 2.13.0
    record
    2011-02-26 · diff ↗
  • 1.1.2
    record
    2025-06-18 · diff ↗ ·
    removed 1 export
    wtd.quantile
  • 1.1.1
    record
    2025-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.4
    record
    2021-06-10 · diff ↗
  • 1.0.3
    record
    2021-06-09 · diff ↗
  • 1.0.2
    record
    2021-05-27 · diff ↗ ·
    added 6 exports
    findwtdinteraction.lmerMod, findwtdinteraction.list, findwtdinteraction.multinom, plotinteractpreds.default, plotinteractpreds.interactpreds, plotinteractpreds.interactpredsmnl
  • 1.0.1
    record
    2020-02-12 · diff ↗
  • 1.0
    record
    2018-10-17 · diff ↗
  • 0.90
    record
    2018-04-27 · diff ↗
  • 0.85
    record
    2016-02-12 · diff ↗ ·
    added 5 exports
    findwtdinteraction, plotwtdinteraction, plotinteractpreds, findwtdinteraction.mira, findwtdinteraction.default
  • 0.80
    record
    2014-03-04 · diff ↗ ·
    added 1 export
    wtd.cors
  • 0.75
    record
    2012-08-17 · diff ↗ ·
    removed 1 export
    wtd.cors
  • 0.72
    record
    2012-02-24 · diff ↗ ·
    removed 2 exports
    wtd.partial.cor, onecor.partial.wtd
  • 0.71
    record
    2011-12-21 · diff ↗
  • 0.70
    record
    2011-08-16 · diff ↗ ·
    added 2 exports
    wtd.partial.cor, onecor.partial.wtd
  • 0.65
    record
    2011-04-28 · diff ↗
  • 0.6
    record
    2011-03-05
  • R
    R 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")
Pasek, J., Some code modified from R-core, Culter, G., Schwemmle, M., & Tahk, A. (2025). weights: Weighting and Weighted Statistics (Version 1.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for weights version 1.1.2 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy