WeightIt
1.7.0Weighting for Covariate Balance in Observational Studies
Overview
Generates balancing weights for causal effect estimation in observational studies with binary, multi-category, or continuous point or longitudinal treatments by easing and extending the functionality of several R packages and providing in-house estimation methods. Available methods include those that rely on parametric modeling, optimization, and machine learning. Also allows for assessment of weights and checking of covariate balance by interfacing directly with the 'cobalt' package. Methods for estimating weighted regression models that take into account uncertainty in the estimation of the weights via M-estimation or bootstrapping are available. See the vignette "Installing Supporting Packages" for instructions on how to install any optional package 'WeightIt' uses, including those that may not be on CRAN.
Install
Health
- OK2026-03-2614 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-104 OK · 0 NOTE · 1 WARNING · 9 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 95%
- Return-value docs
- 87%
- References docs
- 49%
Downloads
Repository
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/ngreifer/weightit on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 4.0 median / 56 max
- Test cases
- 47 / 0.19 per code line
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
272 16 exported
Complexity
9 avg / 56 max
Call network
272 nodes / 1120 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| msmdata | data.frame | 7,500 × 10 | – |
People & History
33 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.7.0Latest
- 1.6.02026-03-19 · diff ↗
- 1.5.12025-11-15 · diff ↗
- 1.5.02025-09-18 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.4.02025-02-24 · diff ↗
- 1.3.22024-11-05 · diff ↗
- 1.3.12024-10-04 · diff ↗
- 1.3.02024-08-24 · diff ↗
- 1.2.02024-07-27 · diff ↗
- 1.1.02024-05-04 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.02024-03-23 · diff ↗
- 0.14.22023-05-23 · diff ↗
- 0.14.12023-05-10 · diff ↗
Show 32 earlier events
- RR 4.3.0 released · 2023-04-21
- 0.14.02023-04-12 · diff ↗
- 0.13.12022-06-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.12.02021-04-03 · diff ↗
- 0.11.02021-02-02 · diff ↗
- 0.10.22020-08-27 · diff ↗
- 0.10.12020-08-12 · diff ↗
- 0.10.02020-07-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.9.02020-02-11 · diff ↗
- 0.8.02020-01-12 · diff ↗
- 0.7.12019-10-30 · diff ↗
- 0.7.02019-10-16 · diff ↗
- 0.6.02019-09-05 · diff ↗
- unarchivedReturned to CRAN2019-09-05
- archivedRemoved from CRAN2019-09-03uses archived package 'optweight' unconditionally
- RR 3.6.0 released · 2019-04-26
- 0.5.12019-01-16 · diff ↗
- 0.5.02018-11-22 · diff ↗
- 0.4.02018-06-25 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.3.22018-03-14 · diff ↗
- 0.3.12018-03-03 · diff ↗
- unarchivedReturned to CRAN2018-03-03
- archivedRemoved from CRANArchived package 'CBPS'
- archivedRemoved from CRAN2018-02-09using Suggests packages unconditionally was not corrected despite reminders
- 0.3.02018-01-14 · diff ↗
- 0.2.02017-11-13 · diff ↗
- 0.1.02017-10-17
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-10-17
- Total releases
- 33 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 19 KB / 1 file
- Download size
- 1.0 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet