Skip to content

Commit

Permalink
version 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreifer authored and cran-robot committed Sep 12, 2019
1 parent 80a3dbf commit 63db05e
Show file tree
Hide file tree
Showing 48 changed files with 2,717 additions and 1,775 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
@@ -1,12 +1,12 @@
Package: cobalt
Title: Covariate Balance Tables and Plots
Version: 3.7.0
Version: 3.8.0
Author: Noah Greifer [aut, cre]
Maintainer: Noah Greifer <noah.greifer@gmail.com>
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', 'twang', 'Matching', 'optmatch', 'CBPS', 'ebal', 'WeightIt', 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 longitudinal treatments.
Depends: R (>= 3.3.0)
Imports: ggplot2 (>= 3.0.0), ggstance, crayon, backports (>= 1.1.1),
methods
Imports: ggplot2 (>= 3.0.0), grid (>= 3.6.1), gtable (>= 0.3.0),
gridExtra (>= 2.3.0), ggstance, crayon, backports (>= 1.1.1)
Suggests: MatchIt, WeightIt (>= 0.5.0), twang, Matching, optmatch,
ebal, CBPS (>= 0.17), designmatch, optweight, mice, mlogit (>=
0.3-0), knitr, rmarkdown
Expand All @@ -17,6 +17,6 @@ VignetteBuilder: knitr
URL: https://github.com/ngreifer/cobalt
BugReports: https://github.com/ngreifer/cobalt/issues
NeedsCompilation: no
Packaged: 2019-05-01 17:24:05 UTC; NoahGreifer
Packaged: 2019-09-11 22:25:54 UTC; NoahGreifer
Repository: CRAN
Date/Publication: 2019-05-01 20:30:03 UTC
Date/Publication: 2019-09-12 05:30:09 UTC
93 changes: 47 additions & 46 deletions MD5
@@ -1,63 +1,64 @@
86521fa557faee64387bd6a4a9c5ef92 *DESCRIPTION
31d2d773169dac5a843d591d4c4a7ca8 *NAMESPACE
4029f32f2e4876bbcde06cb36b55e11f *NEWS.md
7e16054b2447a4ecfb49c9f0af6d5da3 *R/SHARED.R
bbdc55ff0750a72533d1dd3ded255fc1 *R/bal.plot.R
fab39cacd6fcfae79ebddeafc7763b5a *R/bal.tab.R
bb393f28b73e18d42bb706ed5b5f2541 *R/base.bal.tab.R
9c807f2322e50696c6c7615f0693578b *R/functions_for_processing.R
fbdf5b7cc7cf2b29951dd40d4a6dcaea *R/get.w.R
bc7ba7b5f7b14ba6284054a4d321aed0 *DESCRIPTION
70e5b2af4c6689abc8eb18c450251caa *NAMESPACE
d8fbbbb2b2b6396a51cc14fa925fd74e *NEWS.md
a5ce356f8678bd1b12cdbc3102f0bed5 *R/SHARED.R
c54949539a75ebd9aa11a2cd42a0d7d1 *R/bal.plot.R
1f3c8024c92fa50441999dcd24ae620b *R/bal.tab.R
828810809b156827192e9644d4f0652f *R/base.bal.tab.R
8ed3c52cfae4e954c997da426af2da9f *R/functions_for_processing.R
f11243283b91b59117835773cdf706f6 *R/get.w.R
97e9cbf360fcaf9871804058454dc688 *R/internal_utilities.R
26e01b04060d3070d4d7072691ed9105 *R/love.plot.R
0db5b014ad91bb77649dc557d10516d1 *R/print.bal.tab.R
ad6fd0bfaf3515e65d11971ece3e63fa *R/utilities.R
6d17bd5c2cd0419f3d5fe0e80b445603 *R/x2base.R
1f6292eb1ae46224f434bd63250c8d10 *R/love.plot.R
51d3dd5f326078d92732228bb1bf7d69 *R/print.bal.tab.R
45f6373c3f99b21a2766d90265d801a4 *R/utilities.R
5b5374e03cefae541389a0f61179115d *R/x2base.R
0230929ebe6a272d2311fcb946c97905 *README.md
15d80e0328bc5d9357a4d7b45553ffc0 *build/partial.rdb
1fc7c8e5d7d4eee841792233f86b210f *build/vignette.rds
176d47f909aaf85afed7e994b1f8bcf7 *build/partial.rdb
fa3731152afd9ee9a20fb5820f5bdc7a *build/vignette.rds
949b492287de79b9a90d520db98768c1 *data/lalonde.RData
d22e5afa667cdc190e348ae984c830a2 *data/lalonde_mis.RData
2d4f9dbae7cd3304b76ebc10b5dc92b1 *inst/doc/cobalt_A0_basic_use.R
d96f19387f15d6c43d6594b67c17beb5 *inst/doc/cobalt_A0_basic_use.Rmd
1e8528eb29d90060a4eb374b6f960c75 *inst/doc/cobalt_A0_basic_use.html
a2492c0d8d9712ae761d70d074150c31 *inst/doc/cobalt_A0_basic_use.R
737ba510a242ceb3aa5b99230883f6e5 *inst/doc/cobalt_A0_basic_use.Rmd
37e9fd969a42eb243066d043a8ed237f *inst/doc/cobalt_A0_basic_use.html
3921a39964c3c7b19bf5ba3e73042816 *inst/doc/cobalt_A1_other_packages.R
9d90692ada3d40403c2b5c084b5ac9f3 *inst/doc/cobalt_A1_other_packages.Rmd
18c83ebf1f38618429c6dcfeac5af1b6 *inst/doc/cobalt_A1_other_packages.html
353e1729c1ee5ba4ff8ca9bb4ab95867 *inst/doc/cobalt_A1_other_packages.html
0b9d0e1d9df4e8e9360d3f82ce3e68f6 *inst/doc/cobalt_A2_cluster_imp.R
cf8902f3d3107b72c29af62cfe1324d2 *inst/doc/cobalt_A2_cluster_imp.Rmd
8a9965b1fc361d6d99092492f758b7f7 *inst/doc/cobalt_A2_cluster_imp.html
351641b376b05f177daeca68bde0a677 *inst/doc/cobalt_A2_cluster_imp.Rmd
8b8a42fbb19d83b4903cc697bfd2a67f *inst/doc/cobalt_A2_cluster_imp.html
c217feb718967eef1be87c679db69b03 *inst/doc/cobalt_A3_longitudinal_treat.R
e7f0e422126acc5e28e6a6d44d8e8e0a *inst/doc/cobalt_A3_longitudinal_treat.Rmd
514fff81aaea5de4c15c46ceafcc3164 *inst/doc/cobalt_A3_longitudinal_treat.html
b43e9a4a97494ef5122c83b164a33390 *inst/doc/cobalt_A3_longitudinal_treat.html
324de8fe4c2c8ce07434ae41b018702f *inst/figures/README-unnamed-chunk-3-1.png
5337340e8d5bbd86e9fa43c6ec979374 *inst/figures/README-unnamed-chunk-3-2.png
797f8b0a88cb066430299b3ae748efa8 *inst/figures/README-unnamed-chunk-3-3.png
926e4cc348503091490b5dd662255137 *inst/figures/README-unnamed-chunk-4-1.png
ec7b32fa0e3de3ebda7deeaee5c5cba8 *man/bal.plot.Rd
25130fd608109cb1e4258b42d90351cf *man/bal.tab.CBPS.Rd
df577ff8234fc936c82b57cef0e7f302 *man/bal.tab.Match.Rd
9f7d125402b0d4e209b54c3b1ae19e36 *man/bal.tab.Rd
cc029a9c9ea9b1fd88ec0d2b575ca4e6 *man/bal.tab.default.Rd
16cd3e824fd787721f29891c830abf0e *man/bal.tab.df.formula.Rd
c3151d7ff36049932996b8866dbc7244 *man/bal.tab.df.formula.list.Rd
91c05f6557e55e29a90527b8497b8380 *man/bal.tab.matchit.Rd
5e524a0a14e589a8e0b8930107614113 *man/bal.tab.ps.Rd
3a58b07c8524fd1a45c2d0973ccc7e9e *man/bal.tab.weightit.Rd
da48255cc03607a5158ba6dc6e2c5a19 *man/class-bal.tab.cluster.Rd
921b7b65843983f875ae5b28477a944d *man/class-bal.tab.imp.Rd
3c588982db7f656c80c9710bf787ca54 *man/class-bal.tab.msm.Rd
0a17031ea733b7a211ade9dfce623fbb *man/class-bal.tab.multi.Rd
e7e14ebae827f86f1ad39c2b4d576410 *man/bal.plot.Rd
71b2d518ce2197a4aa96729a2c8c0203 *man/bal.tab.CBPS.Rd
b031cdcb2a34e06a5613f1713b73507e *man/bal.tab.Match.Rd
8b5bce0c8eb0c01ffc5860f8da5a36a5 *man/bal.tab.Rd
51174518330ade0219059f8c2fbe6436 *man/bal.tab.default.Rd
5f24497c31f0c23deb91d31d842ec3ee *man/bal.tab.df.formula.Rd
32cb2d908ce956926b848b0b063817d4 *man/bal.tab.df.formula.list.Rd
5d6d9c440f9eca36844c0b630e3fd0bd *man/bal.tab.matchit.Rd
55f1e578f12bb204f1355b850b560dc9 *man/bal.tab.ps.Rd
d5ae6363cc18c5dbae416042143025a4 *man/bal.tab.weightit.Rd
b45d5c21b799d1cd63c1c64d5936b46a *man/class-bal.tab.cluster.Rd
33f8b0bf4f1923c488a09939c13acfd4 *man/class-bal.tab.imp.Rd
1ad72e1e4ae6218dce6b6e36ecf3745f *man/class-bal.tab.msm.Rd
f13017b34e5f0754c7de55719f7e00bb *man/class-bal.tab.multi.Rd
326bc0e53c12a08b8fc7cc7238aaaabd *man/class-bal.tab.subclass.Rd
bae1d03301abe8a52ad9b93886544938 *man/display_options.Rd
6ca574c81e832062c4396bf29d707095 *man/f.build.Rd
193e065c946cd305f5dea429a8d3833f *man/get.w.Rd
e43b36b1df7ae5954e88f78eeb9d7f87 *man/lalonde.Rd
abf30cb8a22855e1f8465d40c20c99df *man/love.plot.Rd
f308794bc3224c716195d1cff8ed7c7b *man/cobalt-package.Rd
5e3bc19341ae894cd36ae8ef38ddb3c4 *man/display_options.Rd
caef175070abae4758aadce5074fcd2e *man/f.build.Rd
6271eda96f92db111d527ccb637bf279 *man/get.w.Rd
967ae0375d22a6d36eb1b56b36907344 *man/lalonde.Rd
5b4255e9d1e5d94ad96adc716b8ce13a *man/love.plot.Rd
d90422bdb2a3cd144311f2b17166710b *man/print.bal.tab.Rd
346c87d8f564328b4d586760ddfad5aa *man/set.cobalt.options.Rd
f184858a9714bbb22b832b841c103607 *man/splitfactor.Rd
66a455bbca5dcd1e7381d0fe53415d9a *man/var.names.Rd
d96f19387f15d6c43d6594b67c17beb5 *vignettes/cobalt_A0_basic_use.Rmd
4ebf3f7cb697fadd5d356b8d4d27720d *man/set.cobalt.options.Rd
ece3fdbbc7e4ed2ca03b622c22b0cf84 *man/splitfactor.Rd
05a7e465db294a53fcc2eeddf8df06d3 *man/var.names.Rd
737ba510a242ceb3aa5b99230883f6e5 *vignettes/cobalt_A0_basic_use.Rmd
9d90692ada3d40403c2b5c084b5ac9f3 *vignettes/cobalt_A1_other_packages.Rmd
cf8902f3d3107b72c29af62cfe1324d2 *vignettes/cobalt_A2_cluster_imp.Rmd
351641b376b05f177daeca68bde0a677 *vignettes/cobalt_A2_cluster_imp.Rmd
e7f0e422126acc5e28e6a6d44d8e8e0a *vignettes/cobalt_A3_longitudinal_treat.Rmd
19 changes: 16 additions & 3 deletions NAMESPACE
@@ -1,9 +1,14 @@
import(ggplot2)
import(stats)
importFrom("utils", "combn", "data", "write.csv", "methods")
importFrom("grDevices", "col2rgb", "hcl")
import(grid)
importFrom("utils", "combn", "data", "write.csv", "methods", "packageDescription")
importFrom("grDevices", "col2rgb", "hcl", "n2mfrow")
importFrom("crayon", "italic", "underline")
importFrom("methods", "is")
importFrom("gtable", "gtable_col", "gtable_add_cols", "gtable_add_rows",
"gtable_add_grob", "gtable_matrix")
importFrom("gridExtra", "arrangeGrob", "gtable_cbind", "gtable_rbind")
importFrom("ggstance", "position_dodgev")

if (getRversion() < "3.5.0") importFrom("backports", "...elt", "...length")

export(bal.tab, bal.plot, love.plot, f.build, splitfactor,
Expand All @@ -26,11 +31,17 @@ S3method(bal.tab, Match)
S3method(bal.tab, CBPS)
S3method(bal.tab, formula)
S3method(bal.tab, data.frame)
S3method(bal.tab, numeric)
S3method(bal.tab, factor)
S3method(bal.tab, character)
S3method(bal.tab, logical)
S3method(bal.tab, ebalance)
S3method(bal.tab, ebalance.trim)
S3method(bal.tab, optmatch)
S3method(bal.tab, weightit)
S3method(bal.tab, designmatch)
#S3method(bal.tab, mimids)
#S3method(bal.tab, wimids)
S3method(bal.tab, formula.list)
S3method(bal.tab, data.frame.list)
S3method(bal.tab, CBMSM)
Expand All @@ -48,4 +59,6 @@ S3method(get.w, ebalance.trim)
S3method(get.w, optmatch)
S3method(get.w, weightit)
S3method(get.w, designmatch)
#S3method(get.w, mimids)
#S3method(get.w, wimids)
S3method(get.w, CBMSM)
22 changes: 22 additions & 0 deletions NEWS.md
@@ -1,6 +1,28 @@
`cobalt` News and Updates
======

Version 3.8.0

* Added the ability to display balance on multiple measures (e.g., mean differences, variance ratios, KS statistics) at the same time with `love.plot()`.

* Bug fixes that make `bal.tab()` and `love.plot()` more usable within other functions and especially when called with `do.call()`.

* Made it easier to get proper `bal.tab` output when using `matchit()` with an argument to `distance` (in the call to `matchit()`). Include the original dataset in the `data` argument of `bal.tab()` to get the variables to display correctly.

* Changed the default shape in `love.plot()` to `"circle"`, which is a solid circle. I found this a prettier alternative to the open circle, especially on Windows. To get back open circles you set `shapes = "circle filled"` (yes, that is a bit confusing).

* Added ability to hide the gridlines easily in `love.plot()`.

* Changed the calculation of standard deviations (and standardized differences in proportion) for binary variables to be more in line with recommendations, as noted by @mbloechl05. Note this will make these values different from those in `MatchIt::summary` by a small amount.

* The KS statistic is now computed for binary variables. It is simply the difference in proportion.

* Added methods for objects from the `MatchIt.mice` package.

* Allowed some methods to accept `mids` objects (the output of a call to `mice::mice()`) in the `data` argument to supply multiply imputated data. This essentially replaces `data = complete(imp.out, "long"), imp = ".imp"` with `data = imp.put`, assuming `imp.out` is a `mids` object.

* Other bug fixes and improvements.

Version 3.7.0

* Changes to some `bal.tab` defaults: `quick` is now set to `TRUE` by default. Adjusted and unadjusted means, standard deviations, and mean differences will always be computed, regardless of `quick`. Variance ratios and KS statistics will only be computed if `quick = FALSE` or `disp.v.ratio` or `disp.ks`, respectively, are `TRUE`.
Expand Down

0 comments on commit 63db05e

Please sign in to comment.