Skip to content

cobalt

Covariate Balance Tables and Plots

v4.6.3 · May 29, 2026 · GPL (>= 2)

Description

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.

Downloads

CRAN

16.9K

Last 30 days

907th

58.6K

Last 90 days

208K

Last year

Trend: -22.2% (30d vs prior 30d)

r2u CRAN

75

Last 30 days

331

Last 90 days

4.2K

Last year

Trend: +13.6% (30d vs prior 30d)

autoCRAN

2

Last 7 days

16

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

27,863

Files

120

Compiled share

0%

Has compiled src

No

Language breakdown

R 20,097 (72.1%)Tests 718 (2.6%)Docs 3,658 (13.1%)Vignettes 3,390 (12.2%)

API

Exported functions

23

Internal functions

287

Recent export changes

v4.6.0+2 col_w_dcorr, col_w_dcov

Testing & CI

Has tests

Yes

Test-to-code ratio

0.04

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

90%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

60%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

45

First release

2016-07-15

Latest release

2026-05-30

Avg cadence

52 days

Cold removal rate

Dep drift

29

LOC over versions

v1.0.0: 2,243 LOCv1.1.0: 2,802 LOCv1.2.0: 4,407 LOCv1.3.0: 4,807 LOCv1.3.1: 5,441 LOCv2.0.0: 7,512 LOCv2.1.0: 8,390 LOCv2.2.0: 9,329 LOCv3.0.0: 10,327 LOCv3.1.0: 10,907 LOCv3.2.0: 12,923 LOCv3.2.1: 13,010 LOCv3.2.2: 13,057 LOCv3.2.3: 13,212 LOCv3.3.0: 14,460 LOCv3.4.0: 16,088 LOCv3.4.1: 16,161 LOCv3.5.0: 15,505 LOCv3.6.0: 15,820 LOCv3.6.1: 15,971 LOCv3.7.0: 16,346 LOCv3.8.0: 17,215 LOCv3.9.0: 18,367 LOCv4.0.0: 17,639 LOCv4.1.0: 18,724 LOCv4.2.0: 19,048 LOCv4.2.1: 19,186 LOCv4.2.2: 19,093 LOCv4.2.3: 19,264 LOCv4.2.4: 19,301 LOCv4.3.0: 19,510 LOCv4.3.1: 19,567 LOCv4.3.2: 20,526 LOCv4.4.0: 20,141 LOCv4.4.1: 20,303 LOCv4.5.0: 24,690 LOCv4.5.1: 24,951 LOCv4.5.2: 24,963 LOCv4.5.3: 25,205 LOCv4.5.4: 25,881 LOCv4.5.5: 25,970 LOCv4.6.0: 27,874 LOCv4.6.1: 28,153 LOCv4.6.2: 28,065 LOCv4.6.3: 27,863 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (24)

Dependency Network

Dependencies Reverse dependencies ggplot2 gtable (>= 0.3.6) gridExtra arg rlang cli MultiObjMatch WeightIt beastt debiasedTrialEmulation missDiag mvGPS pda sim.BA CausalSpline MatchIt MatchThem UKBAnalytica causalCmprsk couplr fwb +9 more reverse deps cobalt

Version History

46 tracked
updated 4.6.3 ← 4.6.2 diff May 30, 2026
new 4.6.2 Mar 10, 2026
updated 4.6.2 ← 4.6.1 diff Jan 28, 2026
updated 4.6.1 ← 4.6.0 diff Aug 19, 2025
updated 4.6.0 ← 4.5.5 diff Apr 14, 2025
updated 4.5.5 ← 4.5.4 diff Apr 1, 2024
updated 4.5.4 ← 4.5.3 diff Feb 26, 2024
updated 4.5.3 ← 4.5.2 diff Jan 9, 2024
updated 4.5.2 ← 4.5.1 diff Nov 19, 2023
updated 4.5.1 ← 4.5.0 diff Apr 27, 2023
updated 4.5.0 ← 4.4.1 diff Mar 21, 2023
updated 4.4.1 ← 4.4.0 diff Nov 2, 2022
updated 4.4.0 ← 4.3.2 diff Aug 14, 2022
updated 4.3.2 ← 4.3.1 diff Jan 18, 2022
updated 4.3.1 ← 4.3.0 diff Mar 29, 2021