Skip to content

cobalt

4.6.3

Covariate Balance Tables and Plots

26packages depend
212.5Kdownloads / year
31.7%test coverage
13/13checks pass

Overview

About
Maintained by Noah GreiferFirst published 2016-07-1545 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 18.6 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.04
31.7%
Coverage · measured lines
100%
Documentation · exports
10
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 790 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
90%
References docs
11%

Downloads

212.5K
CRAN downloads in the past year
Rank #878 · ~582/day · ~17.7K/mo
Daily download trend is not available in this view yet.
16.3K30 days
57.7K90 days
212.5K1 year
Compare downloads with other packages →
Also on4.2K r2u40 autocran8.2K conda_forge133 c2d4u

Repository

Repository
85Stars
17Forks
3Open issues
0Open PRs
0Releases
1,649Commits
8Contributors
causal-inferencepropensity-scoresr
1,649 commits · Last activity 2026-05-29 · 0% stars, 30d

Stars over time

2025-07-17 · 772026-07-07 · 85

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (10)
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 20,815 (75%)Rd 3,658 (13%)Vignettes 2,335 (8%)Other 1,055 (4%)
Code characteristics
Object systems
S345
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

Loading call graph…

Lowest coverage

318 functions
FunctionCycloCoverage
bal.plot exp1620%
col_w_dcorr exp10%
col_w_dcov exp80%
col_w_ovl exp220%
get.cobalt.options exp50%
set.cobalt.options exp220%

Datasets

Bundled datasets · 2
NameClassRows × ColsAlso ships in
lalondedata.frame614 × 9
lalonde_misdata.frame614 × 9

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

45 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 4.6.3Latest
    2026-05-30 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 4.6.2
    2026-01-29 · diff ↗
  • 4.6.1
    2025-08-20 · diff ↗
  • 4.6.0
    2025-04-15 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 4.5.5
    2024-04-02 · diff ↗
  • 4.5.4
    2024-02-27 · diff ↗
  • 4.5.3
    2024-01-10 · diff ↗
  • 4.5.2
    2023-11-20 · diff ↗
  • 4.5.1
    2023-04-28 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 4.5.0
    2023-03-22 · diff ↗
  • 4.4.1
    2022-11-03 · diff ↗
  • 4.4.0
    2022-08-15 · diff ↗
Show 45 earlier events
  • R
    R 4.2.0 released · 2022-04-22
  • 4.3.2
    2022-01-19 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 4.3.1
    2021-03-30 · diff ↗
  • 4.3.0
    2021-02-20 · diff ↗
  • 4.2.4
    2020-11-05 · diff ↗
  • 4.2.3
    2020-08-31 · diff ↗
  • 4.2.2
    2020-06-26 · diff ↗
  • 4.2.1
    2020-06-20 · diff ↗
  • 4.2.0
    2020-06-04 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 4.1.0
    2020-04-11 · diff ↗
  • 4.0.0
    2020-01-08 · diff ↗
  • 3.9.0
    2019-10-06 · diff ↗
  • 3.8.0
    2019-09-12 · diff ↗
  • unarchivedReturned to CRAN
    2019-09-12
  • archivedRemoved from CRAN
    2019-09-03
    uses archived package 'WeightIt' unconditionally
  • 3.7.0
    2019-05-01 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 3.6.1
    2019-01-16 · diff ↗
  • 3.6.0
    2018-11-25 · diff ↗
  • 3.5.0
    2018-10-25 · diff ↗
  • 3.4.1
    2018-09-15 · diff ↗
  • 3.4.0
    2018-08-14 · diff ↗
  • 3.3.0
    2018-06-24 · diff ↗
  • 3.2.3
    2018-05-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 3.2.2
    2018-03-13 · diff ↗
  • 3.2.1
    2018-02-20 · diff ↗
  • unarchivedReturned to CRAN
    2018-02-10
  • archivedRemoved from CRAN
    Archived package 'CBPS'
  • archivedRemoved from CRAN
    2018-02-09
    using Suggests packages unconditionally was not corrected despite reminders
  • 3.2.0
    2018-01-17 · diff ↗
  • 3.1.0
    2017-11-12 · diff ↗
  • 3.0.0
    2017-10-16 · diff ↗
  • 2.2.0
    2017-09-05 · diff ↗
  • 2.1.0
    2017-05-31 · diff ↗
  • 2.0.0
    2017-05-14 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.3.1
    2016-12-18 · diff ↗
  • 1.3.0
    2016-10-23 · diff ↗
  • 1.2.0
    2016-09-01 · diff ↗
  • 1.1.0
    2016-07-23 · diff ↗
  • 1.0.0
    2016-07-15
  • R
    R 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
Appears in task views
Report a problem with this page →