Skip to content

Commit

Permalink
version 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreifer authored and cran-robot committed Oct 25, 2018
1 parent 4bd158b commit 9d2b6fc
Show file tree
Hide file tree
Showing 53 changed files with 3,864 additions and 4,465 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
@@ -1,21 +1,21 @@
Package: cobalt
Title: Covariate Balance Tables and Plots
Version: 3.4.1
Version: 3.5.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, methods
Suggests: MatchIt, WeightIt (>= 0.3.0), twang, Matching, optmatch,
ebal, CBPS (>= 0.17), designmatch, mice, knitr, rmarkdown
ebal, CBPS (>= 0.17), designmatch, optweight, mice, knitr,
rmarkdown
License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
VignetteBuilder: knitr
URL: https://github.com/ngreifer/cobalt
BugReports: https://github.com/ngreifer/cobalt/issues
RoxygenNote: 6.0.1
NeedsCompilation: no
Packaged: 2018-09-14 21:44:48 UTC; NoahGreifer
Packaged: 2018-10-25 05:56:49 UTC; NoahGreifer
Repository: CRAN
Date/Publication: 2018-09-15 07:20:02 UTC
Date/Publication: 2018-10-25 08:10:06 UTC
97 changes: 49 additions & 48 deletions MD5
@@ -1,60 +1,61 @@
27716d003ba1c832ad0c5495167e54ef *DESCRIPTION
8c75818892d88aadbbe83600d5684433 *NAMESPACE
5734eb96fa85a4877655b520c63787e8 *NEWS.md
770396dad9178bac642f41e8354c4c53 *DESCRIPTION
99dcb997a240295c0ad41d1edd2e539a *NAMESPACE
2a67280b8ad8d139c369e96758079a6e *NEWS.md
2a7afa56a30528f58a3be3506bb10eec *R/bal.plot.R
86a034282be87063cc70feaa6607bb20 *R/bal.tab.R
252f00c539c595b16ee0938a76f896cb *R/functions_for_processing.R
111c6a2e0a2855dddb82c83cbbfd8a4a *R/love.plot.R
1cd1d7409f193af8312ff0fa39d960c2 *R/print.bal.tab.R
24d0ea8c0ffb311c6b93aaace001e9de *R/utilities.R
6ed2b9aa25ffdce5485064ee239d8b06 *R/x2base.R
1ec394f9afda0077744d483bba3c1a8a *R/bal.tab.R
61ff77523526515a9cf53ee8eea566a6 *R/base.bal.tab.R
0f14062fb48e2c00445acd7aa7bc51a9 *R/functions_for_processing.R
0f26b792b5bc272033b81ed83c74bb1c *R/get.w.R
475e359715e8edbf647d1c319dabbf0d *R/internal_utilities.R
b0df94fdf71f0f437c66f2ddc4872d07 *R/love.plot.R
eeb03297cfeb252db96006408d7b24d3 *R/print.bal.tab.R
4b9657fc3b1ae6642f0722a6089d1201 *R/utilities.R
ebe68726496414d27d6adf66705ca67f *R/x2base.R
0230929ebe6a272d2311fcb946c97905 *README.md
b5884e50d0bccdd21a693827846a5b07 *build/partial.rdb
a68a3a523252ed2db3875ef7f896471a *build/vignette.rds
66e3e32068b85072eb75a0500d98a2f9 *build/partial.rdb
6e8a2623492f5c5f76888482182b5a13 *build/vignette.rds
949b492287de79b9a90d520db98768c1 *data/lalonde.RData
d22e5afa667cdc190e348ae984c830a2 *data/lalonde_mis.RData
ac2fe583baedeb21fb9ee6b150a3b1be *inst/doc/cobalt_A0_basic_use.R
99c19c1af0dcbf3e284b05847a5cc0fb *inst/doc/cobalt_A0_basic_use.Rmd
c05df2da2707ec076d993cab2cb2da0f *inst/doc/cobalt_A0_basic_use.html
e767c6ba0dc0e71cc6ff9f796f072eeb *inst/doc/cobalt_A1_other_packages.R
595fcd32fc888e345d5e67efde1c2dbd *inst/doc/cobalt_A1_other_packages.Rmd
3cc4b286972ee52d62e019824b5efabb *inst/doc/cobalt_A1_other_packages.html
1e55dd7772ee036af5b6c1396441f22e *inst/doc/cobalt_A2_cluster_imp.R
b38661cc43d2f62eb39b4c0213e86072 *inst/doc/cobalt_A2_cluster_imp.Rmd
c8cd44e4816aba3878c0bac23eab91c2 *inst/doc/cobalt_A2_cluster_imp.html
2567dc17249be8d6a4a745eb2fcde53c *inst/doc/cobalt_A0_basic_use.R
ae91fb009c9f1f59eaad081f2fe32a18 *inst/doc/cobalt_A0_basic_use.Rmd
9d13f121b99f1acfd7d36f1e68a52573 *inst/doc/cobalt_A0_basic_use.html
3921a39964c3c7b19bf5ba3e73042816 *inst/doc/cobalt_A1_other_packages.R
9d90692ada3d40403c2b5c084b5ac9f3 *inst/doc/cobalt_A1_other_packages.Rmd
daf7e916b68bb9dcc502bc30030a68e7 *inst/doc/cobalt_A1_other_packages.html
c62832bb9bfe781d992b0363c5ed0fc2 *inst/doc/cobalt_A2_cluster_imp.R
23eee6bb0d3db2da9ca8fd9bd7b9c523 *inst/doc/cobalt_A2_cluster_imp.Rmd
73437e8743d74f61f95088d27634ae68 *inst/doc/cobalt_A2_cluster_imp.html
8c429299d3a0b9e1d5b61fd3cf3d2d58 *inst/doc/cobalt_A3_longitudinal_treat.R
f88d8c92fbc7efa42ea3d78ea86c7fa3 *inst/doc/cobalt_A3_longitudinal_treat.Rmd
89c91cc12d9bc70d86d02574f99bde26 *inst/doc/cobalt_A3_longitudinal_treat.html
339068c87f693bd05b26d0784ffc9c23 *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
aa4306880913def979bbb6027b677810 *man/bal.plot.Rd
0fe249ec90acaaabaf29a756e8a90bee *man/bal.tab.CBPS.Rd
df088bd45c3d27a6c67789e2cb5e91be *man/bal.tab.Match.Rd
9c53ee8b7f0374797cbbf643d150f8e5 *man/bal.tab.Rd
58b9ddb8243c20c4f7a59feba5ded57a *man/bal.tab.default.Rd
7671cfc908579f8c9c4ccab24d75c97f *man/bal.tab.designmatch.Rd
99c0cea8760857fc94a9accff814aa40 *man/bal.tab.df.formula.Rd
2de1cc4f94dc2e9ae09a3693dff1adba *man/bal.tab.ebalance.Rd
441501808092f72f6ba00e7567651ad3 *man/bal.tab.matchit.Rd
91e4418dfdb66884c5ae00735a3ba1d9 *man/bal.tab.optmatch.Rd
999ee9c279c23a259faaaca37c8b9efe *man/bal.tab.ps.Rd
14a510451ff0acad0ee8d470adc12040 *man/bal.tab.time.list.Rd
8e89806bcdc2a23bd3c7b8829f8aee0c *man/bal.tab.weightit.Rd
5393b869fd5241a0b67a953d0bfd50eb *man/class-bal.tab.cluster.Rd
c7ad374fab50275b24caa62fa7b5b8f8 *man/class-bal.tab.imp.Rd
c0fb0b94486aacd6bb0f55b0dfe4baec *man/class-bal.tab.msm.Rd
16f25efaff633934879fea04283f5e44 *man/class-bal.tab.multi.Rd
e6f6d5deb06f53a4c8a8dc62384a8fd2 *man/class-bal.tab.subclass.Rd
a08ee89605f037da64ad5c71d24badec *man/f.build.Rd
7fee717c3b619b05bc42a2dbc3ad0dae *man/get.w.Rd
ec7b32fa0e3de3ebda7deeaee5c5cba8 *man/bal.plot.Rd
02e7dea3609e1fabcca1fccbd61c7df8 *man/bal.tab.CBPS.Rd
7e1e81064383e887e9585c53eddaf785 *man/bal.tab.Match.Rd
4f02443f7a57f9e35db335e6b1bf2bbf *man/bal.tab.Rd
cc029a9c9ea9b1fd88ec0d2b575ca4e6 *man/bal.tab.default.Rd
2a31be069bf75e650b5b3ae7ec909828 *man/bal.tab.df.formula.Rd
f17f4396df6f8a196cb6c038f5791077 *man/bal.tab.df.formula.list.Rd
4446ccf620c2ccc011763fc9ae3b8fce *man/bal.tab.matchit.Rd
bed4f0b1facf09207fd9c2e02009e9d7 *man/bal.tab.ps.Rd
d34dff762eb8049921c1a30893cd465b *man/bal.tab.weightit.Rd
49614f4c9f4c4f58fdd4a9898c2b6822 *man/class-bal.tab.cluster.Rd
91785081627f2df76dbff8be484a92fc *man/class-bal.tab.imp.Rd
8cd0091e3a13e7f67341bdfcfe984e47 *man/class-bal.tab.msm.Rd
0b6941a93acdc65d039da54e511d561c *man/class-bal.tab.multi.Rd
326bc0e53c12a08b8fc7cc7238aaaabd *man/class-bal.tab.subclass.Rd
8efc365302a410bd5372648c454b2d15 *man/display_options.Rd
6ca574c81e832062c4396bf29d707095 *man/f.build.Rd
0a8cca0a28eafac07f58400cc1d2807d *man/get.w.Rd
e43b36b1df7ae5954e88f78eeb9d7f87 *man/lalonde.Rd
fc26c4cd0a640103df0cac2cff089acb *man/love.plot.Rd
d0d0bd8d571d0607a4066347fb32620c *man/print.bal.tab.Rd
4650b55c6932be5377877a1fa960cb6e *man/splitfactor.Rd
886f4a717e9a135f5f58ddc1db2e8dee *man/var.names.Rd
99c19c1af0dcbf3e284b05847a5cc0fb *vignettes/cobalt_A0_basic_use.Rmd
595fcd32fc888e345d5e67efde1c2dbd *vignettes/cobalt_A1_other_packages.Rmd
b38661cc43d2f62eb39b4c0213e86072 *vignettes/cobalt_A2_cluster_imp.Rmd
c2e995eeb14018e866d1ebc94980ec70 *man/love.plot.Rd
d90422bdb2a3cd144311f2b17166710b *man/print.bal.tab.Rd
f184858a9714bbb22b832b841c103607 *man/splitfactor.Rd
66a455bbca5dcd1e7381d0fe53415d9a *man/var.names.Rd
ae91fb009c9f1f59eaad081f2fe32a18 *vignettes/cobalt_A0_basic_use.Rmd
9d90692ada3d40403c2b5c084b5ac9f3 *vignettes/cobalt_A1_other_packages.Rmd
23eee6bb0d3db2da9ca8fd9bd7b9c523 *vignettes/cobalt_A2_cluster_imp.Rmd
f88d8c92fbc7efa42ea3d78ea86c7fa3 *vignettes/cobalt_A3_longitudinal_treat.Rmd
3 changes: 2 additions & 1 deletion NAMESPACE
Expand Up @@ -29,7 +29,8 @@ S3method(bal.tab, ebalance.trim)
S3method(bal.tab, optmatch)
S3method(bal.tab, weightit)
S3method(bal.tab, designmatch)
S3method(bal.tab, time.list)
S3method(bal.tab, formula.list)
S3method(bal.tab, data.frame.list)
S3method(bal.tab, CBMSM)
S3method(bal.tab, default)
S3method(get.w, matchit)
Expand Down
32 changes: 27 additions & 5 deletions NEWS.md
@@ -1,17 +1,39 @@
cobalt News and Updates
`cobalt` News and Updates
======

Version 3.5.0

* Several changes to `bal.tab()` display options (i.e., `imbalanced.only`, `un`, `disp.means`, `disp.v.ratio`, `disp.ks`, `disp.bal.tab`, `disp.subclass`, and parameters related to the display of balance tables with multinomial treatments, clusters, multiple imputations, and longitudinal treatments). First, the named arguments have been removed from the method-specific functions in order to clean them up and make it easier to add new functions, but they are still available to be specified. Second, a help page devoted just to these functions has been created, which can be accessed with `?options-display`. Third, global options for these arguments can be set with `options()` so they don't need to be typed each time. For example, if you wanted `un = TRUE` all the time, you could set `options(cobalt_un = TRUE)` once and not have to include it in the call to `bal.tab()`.

* Added `disp.sds` option to display standard deviations for each group in `bal.tab()`. This works in all the same places `disp.means` does.

* Added `cluster.fun` and `imp.fun` options to request that only certain functions (e.g., mean or maximum) of the balance statistics are displayed in the summary across clusters/imputations. Previously this option was only available by call `print()`. These parameters are part of the display options described above, so they are documented in `?options-display` and not in the `bal.tab` help files.

* Added `factor_sep` and `int_sep` options to change the seperators between variable names when factor variables and interactions are displayed. This functionality had been available since version 3.4.0 but was not documented. It is now documented in the new `display_options` help page.

* In `bal.tab()`, `continuous` and `binary` can be specified with the global options `"cobalt_cont"` and `"cobalt_bin"`, respectively, so that a global setting (e.g., to set `binary = "std"` to view standardizd mean difference rather than raw differences in proportion for binary variables) can be used instead of specifying the argument each time in the call to `bal.tab()`.

* Minor updates to `f.build()` to process inputs more flexibly. The left hand side can now be empty, and the variables on the right hand side can now contain spaces.

* Fixed a bug when logical treatments were used. Thanks to @victorn1.

* Fixed a bug that would occur when a variable had only one value. Thanks to @victorn1.

* Made it so the names of 0/1 and logical variables are not printed with `"_1"` appended to them. Thanks to @victorn1 for the suggestion.

* Major updates to the organization of the code and help files. Certain functions have simplified syntax, relying more on `...`, and help pages have been shorted and consolidated for some methods. In particular, the code and help documents for the `Matching`, `optmatch`, `ebal`, and `designmatch` methods of `bal.tab()` have been consolidated since they all rely on exactly the same syntax.

Version 3.4.1

* Fixed a bug that would occur when `imabalanced.only = TRUE` in `bal.tab` but all variables were balanced.
* Fixed a bug that would occur when `imabalanced.only = TRUE` in `bal.tab()` but all variables were balanced.

* Fixed a bug where the mean of a binary variable would be displayed as 1 minus its mean.

* Fixed a bug that would occur when missingness patterns were the same for multiple variables.

* Fixed a bug that would occur when a distance measure was to be assessed with `bal.tab` and there were missing values in the covariates (thanks to Laura Helmkamp).
* Fixed a bug that would occur when a distance measure was to be assessed with `bal.tab()` and there were missing values in the covariates (thanks to Laura Helmkamp).

* Fixed a bug that would occur when `estimand` was supplied by the user when using the `default` method of `bal.tab`.
* Fixed a bug that would occur when `estimand` was supplied by the user when using the `default` method of `bal.tab()`.

* Fixed a bug where non-standard variable names (like `"I(age^2)"`) would cause an error.

Expand All @@ -29,7 +51,7 @@ Version 3.4.0

* Added new options to `bal.plot`, including the ability to display histograms rather than densities and mirrored rather than overlapping plots. This makes it possible to make the popular mirrored histogram plot for propensity scores. In addition, it's now easier to change the colors of the components of the plots.

* Made behavior around binary variables with interactions more like documentation, where interactions with both levels of the variable are present (thanks to @victorn1). Also, replaced `_` with ` * ` as the delimiter between variable names in interactions. For the old behavior, use the "secret" option `int_sep = "_"` in `bal.tab`. This functionality is not documented (mostly because I'm lazy).
* Made behavior around binary variables with interactions more like documentation, where interactions with both levels of the variable are present (thanks to @victorn1). Also, replaced `_` with ` * ` as the delimiter between variable names in interactions. For the old behavior, use `int_sep = "_"` in `bal.tab`.

* Expanded the flexibility of `var.names` in `love.plot` so that replacing the name of a variable will replace it everywhere it appears, including interactions. Thanks to @victorn1 for the suggestion.

Expand Down

0 comments on commit 9d2b6fc

Please sign in to comment.