Package: cobalt 4.5.5.9000

cobalt: Covariate Balance Tables and Plots

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.

Authors:Noah Greifer [aut, cre]

cobalt_4.5.5.9000.tar.gz
cobalt_4.5.5.9000.zip(r-4.5)cobalt_4.5.5.9000.zip(r-4.4)cobalt_4.5.5.9000.zip(r-4.3)
cobalt_4.5.5.9000.tgz(r-4.4-any)cobalt_4.5.5.9000.tgz(r-4.3-any)
cobalt_4.5.5.9000.tar.gz(r-4.5-noble)cobalt_4.5.5.9000.tar.gz(r-4.4-noble)
cobalt_4.5.5.9000.tgz(r-4.4-emscripten)cobalt_4.5.5.9000.tgz(r-4.3-emscripten)
cobalt.pdf |cobalt.html
cobalt/json (API)
NEWS

# Install 'cobalt' in R:
install.packages('cobalt', repos = c('https://ngreifer.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ngreifer/cobalt/issues

Datasets:
  • lalonde - Data from National Supported Work Demonstration and PSID, as analyzed by Dehejia and Wahba (1999).
  • lalonde_mis - Data from National Supported Work Demonstration and PSID, as analyzed by Dehejia and Wahba (1999).

On CRAN:

causal-inferencepropensity-scores

13.14 score 73 stars 8 packages 792 scripts 8.7k downloads 9 mentions 21 exports 32 dependencies

Last updated 7 months agofrom:8f97c5d5ec. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winOKNov 02 2024
R-4.5-linuxOKNov 02 2024
R-4.4-winOKNov 02 2024
R-4.4-macOKNov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:available.statsbal.computebal.initbal.plotbal.tabcol_w_corrcol_w_covcol_w_kscol_w_meancol_w_ovlcol_w_sdcol_w_smdcol_w_vrf.buildget.cobalt.optionsget.wlove.plotset.cobalt.optionssplitfactorunsplitfactorvar.names

Dependencies:backportschkclicolorspacecrayonfansifarverggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Covariate Balance Tables and Plots: A Guide to the cobalt Package

Rendered fromcobalt.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2024-03-25
Started: 2016-07-18

Frequently Asked Questions

Rendered fromfaq.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2024-02-26
Started: 2024-02-26

Optimizing Tuning Parameters for Balance

Rendered fromoptimizing-balance.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2024-03-25
Started: 2023-03-16

Using cobalt with Clustered, Multiply Imputed, and Other Segmented Data

Rendered fromsegmented-data.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2024-03-25
Started: 2023-03-16

Using cobalt with Longitudinal Treatments

Rendered fromlongitudinal-treat.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2023-04-27
Started: 2023-03-16

Using cobalt with Other Preprocessing Packages

Rendered fromother-packages.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2024-03-25
Started: 2023-03-16

Using love.plot() To Generate Love Plots

Rendered fromlove.plot.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2023-03-21
Started: 2023-03-16

Readme and manuals

Help Manual

Help pageTopics
Efficiently compute scalar balance statisticsavailable.stats bal.compute bal.compute.bal.init bal.compute.default bal.init
Visualize Distributional Balancebal.plot
Display Balance Statistics in a Tablebal.tab
Balance Statistics for 'CBPS' Objectsbal.tab.CBPS
Balance Statistics for 'cem' Objectsbal.tab.cem.match
Balance Statistics for Other Objectsbal.tab.default
Balance Statistics for 'designmatch' Objectsbal.tab.designmatch
Balance Statistics for 'ebalance' Objectsbal.tab.ebalance
Balance Statistics for Data Setsbal.tab.data.frame bal.tab.formula bal.tab.matrix
Balance Statistics for 'Matching' Objectsbal.tab.Match
Balance Statistics for 'MatchIt' Objectsbal.tab.matchit
Balance Statistics for 'MatchThem' Objectsbal.tab.mimids
Balance Statistics for 'optmatch' Objectsbal.tab.optmatch
Balance Statistics for 'twang' Objectsbal.tab.ps
Balance Statistics for 'sbw' Objectsbal.tab.sbwcau
Balance Statistics for Longitudinal Datasetsbal.tab.data.frame.list bal.tab.formula.list bal.tab.time.list
Balance Statistics for 'WeightIt' Objectsbal.tab.weightit
Balance Statistics in 'bal.tab' and 'love.plot'balance-statistics
Compute Balance and Summary Statistics for Covariatesbalance-summary col_w_corr col_w_cov col_w_ks col_w_mean col_w_ovl col_w_sd col_w_smd col_w_vr
Using 'bal.tab()' with Clustered Dataclass-bal.tab.cluster
Using 'bal.tab()' with Multiply Imputed Dataclass-bal.tab.imp
Using 'bal.tab()' with Longitudinal Treatmentsclass-bal.tab.msm
Using 'bal.tab()' with Multi-Category Treatmentsclass-bal.tab.multi
Using 'bal.tab()' with Subclassified Dataclass-bal.tab.subclass
Options for Displaying 'bal.tab()' Outputdisplay-options
Convenient Formula Generationf.build
Extract Weights from Preprocessing Objectsget.w get.w.CBMSM get.w.CBPS get.w.cem.match get.w.designmatch get.w.ebalance get.w.iptw get.w.Match get.w.matchit get.w.mimids get.w.mnps get.w.optmatch get.w.ps get.w.ps.cont get.w.sbwcau get.w.weightit get.w.wimids
Data from National Supported Work Demonstration and PSID, as analyzed by Dehejia and Wahba (1999).lalonde lalonde_mis
Display Balance Statistics in a Love Plotlove.plot
Print Results of a Call to 'bal.tab()'print.bal.tab
Set and Get Options in 'cobalt'get.cobalt.options set.cobalt.options
Split and Unsplit Factors into Dummy Variablessplitfactor unsplitfactor
Extract Variable Names from 'bal.tab' Objectsvar.names