cobalt
4.6.3Covariate Balance Tables and Plots
Overview
Generate balance tables and plots for covariates of groups preprocessed through matching, weighting or subclassification, for example, using propensity scores. Includes integration with 'MatchIt', 'WeightIt', 'MatchThem', 'twang', 'Matching', 'optmatch', 'CBPS', 'ebal', 'cem', 'sbw', and 'designmatch' for assessing balance on the output of their preprocessing functions. Users can also specify data for balance assessment not generated through the above packages. Also included are methods for assessing balance in clustered or multiply imputed data sets or data sets with multi-category, continuous, or longitudinal treatments.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 90%
- References docs
- 11%
Downloads
Repository
Stars over time
Forks over time
Issues over time
PRs over time
Repository practices
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/ngreifer/cobalt on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 4.0 median / 221 max
- Test cases
- 13 / 0.04 per code line
Test coverage
Line coverage
32%
Expression
30.7%
Tests / Examples
31.7% / 48% ex
Functions
318 23 exported
Complexity
10.8 avg / 221 max
Call network
318 nodes / 1527 edges
Call graph
Open call graph →Lowest coverage
318 functions| Function | Cyclo | Coverage |
|---|---|---|
| bal.plot exp | 162 | 0% |
| col_w_dcorr exp | 1 | 0% |
| col_w_dcov exp | 8 | 0% |
| col_w_ovl exp | 22 | 0% |
| get.cobalt.options exp | 5 | 0% |
| set.cobalt.options exp | 22 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| lalonde | data.frame | 614 × 9 | – |
| lalonde_mis | data.frame | 614 × 9 | – |
People & History
45 releases. Pick two to compare their code metrics. R releases are shown for context.
- 4.6.3Latest
- RR 4.6.0 released · 2026-04-24
- 4.6.22026-01-29 · diff ↗
- 4.6.12025-08-20 · diff ↗
- 4.6.02025-04-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 4.5.52024-04-02 · diff ↗
- 4.5.42024-02-27 · diff ↗
- 4.5.32024-01-10 · diff ↗
- 4.5.22023-11-20 · diff ↗
- 4.5.12023-04-28 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 4.5.02023-03-22 · diff ↗
- 4.4.12022-11-03 · diff ↗
- 4.4.02022-08-15 · diff ↗
Show 45 earlier events
- RR 4.2.0 released · 2022-04-22
- 4.3.22022-01-19 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 4.3.12021-03-30 · diff ↗
- 4.3.02021-02-20 · diff ↗
- 4.2.42020-11-05 · diff ↗
- 4.2.32020-08-31 · diff ↗
- 4.2.22020-06-26 · diff ↗
- 4.2.12020-06-20 · diff ↗
- 4.2.02020-06-04 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 4.1.02020-04-11 · diff ↗
- 4.0.02020-01-08 · diff ↗
- 3.9.02019-10-06 · diff ↗
- 3.8.02019-09-12 · diff ↗
- unarchivedReturned to CRAN2019-09-12
- archivedRemoved from CRAN2019-09-03uses archived package 'WeightIt' unconditionally
- 3.7.02019-05-01 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 3.6.12019-01-16 · diff ↗
- 3.6.02018-11-25 · diff ↗
- 3.5.02018-10-25 · diff ↗
- 3.4.12018-09-15 · diff ↗
- 3.4.02018-08-14 · diff ↗
- 3.3.02018-06-24 · diff ↗
- 3.2.32018-05-04 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 3.2.22018-03-13 · diff ↗
- 3.2.12018-02-20 · diff ↗
- unarchivedReturned to CRAN2018-02-10
- archivedRemoved from CRANArchived package 'CBPS'
- archivedRemoved from CRAN2018-02-09using Suggests packages unconditionally was not corrected despite reminders
- 3.2.02018-01-17 · diff ↗
- 3.1.02017-11-12 · diff ↗
- 3.0.02017-10-16 · diff ↗
- 2.2.02017-09-05 · diff ↗
- 2.1.02017-05-31 · diff ↗
- 2.0.02017-05-14 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.3.12016-12-18 · diff ↗
- 1.3.02016-10-23 · diff ↗
- 1.2.02016-09-01 · diff ↗
- 1.1.02016-07-23 · diff ↗
- 1.0.02016-07-15
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-07-15
- Total releases
- 45 / 10 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 21 KB / 2 files
- Download size
- 2.0 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet