Skip to content

Commit 0403c61

Browse files
committed
Update email and paper details
1 parent 95abfd1 commit 0403c61

File tree

6 files changed

+56
-12
lines changed

6 files changed

+56
-12
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
^README\.Rmd$
88
^codecov\.yml$
99
^CRAN-SUBMISSION$
10+
^revdep$

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
Package: optrefine
22
Title: Optimally Refine Strata
3-
Version: 1.0.1
3+
Version: 1.1.1
44
Authors@R:
5-
person("Katherine", "Brumberg", , "kbrum@wharton.upenn.edu", role = c("aut", "cre"),
5+
person("Katherine", "Brumberg", , "kbrum@umich.edu", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-5193-6250"))
7-
Description: Splits initial strata into refined strata that optimize covariate balance. For more information, please email the author for a copy of the accompanying manuscript. To solve the linear program, the 'Gurobi' commercial optimization software is recommended, but not required. The 'gurobi' R package can be installed following the instructions at <https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html>.
8-
URL: https://github.com/kkbrum/optrefine, https://kkbrum.github.io/optrefine/, https://www.gurobi.com/documentation/9.1/refman/ins_the_r_package.html
7+
Description: Splits initial strata into refined strata that optimize covariate balance. For more information, please see Brumberg, Small, and Rosenbaum (2024) <doi:10.1093/biomtc/ujae061>. To solve the linear program, the 'Gurobi' commercial optimization software is recommended, but not required. The 'gurobi' R package can be installed following the instructions at <https://docs.gurobi.com/projects/optimizer/en/current/reference/r/setup.html> after claiming your free academic license at <https://www.gurobi.com/academia/academic-program-and-licenses/>.
8+
URL: https://github.com/kkbrum/optrefine, https://kkbrum.github.io/optrefine/
99
BugReports: https://github.com/kkbrum/optrefine/issues
1010
License: GPL (>= 3)
1111
Encoding: UTF-8
1212
LazyData: true
1313
Roxygen: list(markdown = TRUE)
14-
RoxygenNote: 7.2.3
14+
RoxygenNote: 7.3.2
1515
Depends:
1616
R (>= 2.10),
1717
MASS,

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# optrefine 1.0.0
1+
# optrefine 1.1.1
2+
3+
* Updated author email and citations.
4+
5+
# optrefine 1.1.0
26

37
* Added a couple more possible elements to the `options` argument to the `refine` function. These are `minsplit` for the minimum number of treated or control units to allow in a split stratum and `threads` for the number of threads to use in the optimization.
48
* Changed the value of `details$valueLP` to `NA` if the integer program was solved instead of giving the same value as `details$valueIP`.

cran-comments.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
## Minor release
2-
This is a minor release. In this version I have:
3-
* Added a couple more possible elements to the `options` argument to the `refine` function. These are `minsplit` for the minimum number of treated or control units to allow in a split stratum and `threads` for the number of threads to use in the optimization.
1+
## Patch
2+
This is a patch to update my email address and paper details. Nothing else has changed.
43

54
I am unable to fix the NOTE about 'gurobi' not being available for checking since it is a commercial software and the R package must be downloaded from their website. However, it is only suggested and the package works without it. Installation instructions for the R package 'gurobi' are in the description of the package.
65

76
## Test environments
8-
- local macOS install, R 4.2.2
7+
- local macOS install, R 4.5.2
98
- macOS builder
109
- win-builder (devel and release)
1110
- github actions:
@@ -21,7 +20,7 @@ There were no ERRORs or WARNINGs.
2120
There were 2 NOTEs:
2221

2322
* checking CRAN incoming feasibility ... NOTE
24-
Maintainer: 'Katherine Brumberg <kbrum@wharton.upenn.edu>'
23+
Maintainer: 'Katherine Brumberg <kbrum@umich.edu>'
2524

2625
Suggests or Enhances not in mainstream repositories:
2726
gurobi

inst/CITATION

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
citHeader("To cite optrefine in publications use:")
2+
3+
citEntry(entry = "Manual",
4+
title = "optrefine: Optimally Refine Strata",
5+
author = personList(
6+
person("Katherine", "Brumberg",
7+
email = "kbrum@umich.edu",
8+
role = c("aut", "cre"),
9+
comment = c(ORCID = "0000-0002-5193-6250"))
10+
),
11+
year = "2024",
12+
note = paste("R package version", packageVersion("optrefine")),
13+
url = "https://github.com/kkbrum/optrefine",
14+
textVersion = paste("Brumberg K (2024).",
15+
"optrefine: Optimally Refine Strata.",
16+
"R package version", packageVersion("optrefine"),
17+
"https://github.com/kkbrum/optrefine"))
18+
19+
citHeader("To cite the accompanying paper, please use:")
20+
21+
citEntry(entry = "Article",
22+
title = "Optimal refinement of strata to balance covariates",
23+
author = personList(
24+
person("Katherine", "Brumberg", role = "aut",
25+
comment = c(ORCID = "0000-0002-5193-6250")),
26+
person("Dylan S", "Small", role = "aut"),
27+
person("Paul R", "Rosenbaum", role = "aut")
28+
),
29+
journal = "Biometrics",
30+
year = "2024",
31+
volume = "80",
32+
number = "3",
33+
pages = "ujae061",
34+
doi = "10.1093/biomtc/ujae061",
35+
url = "https://academic.oup.com/biometrics/article/80/3/ujae061/7712595",
36+
textVersion = paste("Brumberg K, Small DS, Rosenbaum PR (2024).",
37+
"Optimal refinement of strata to balance covariates.",
38+
"Biometrics, 80(3), ujae061.",
39+
"doi:10.1093/biomtc/ujae061"))
40+

tests/testthat/test-refine.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ test_that("IP combo obj value calculated correctly", {
9393
n_st_used <- sum(table(ref$refined_strata) != 0)
9494
smds <- calc_smds(z = ref$z, X = ref$X, refined_strata = ref$refined_strata, abs = TRUE)
9595
obj <- (sum(smds$refined, na.rm = TRUE) +
96-
wMax * sum(sapply(1:4, function(x) {max(smds$refined[(2*x-1):(2*x), ], na.rm = TRUE)}))) /
96+
wMax * sum(sapply(1:nstrata, function(x) {max(smds$refined[(2*x-1):(2*x), ], na.rm = TRUE)}))) /
9797
((ncov+1)*n_st_used + nstrata * wMax)
9898
expect_equal(ref$details$valueIP, obj)
9999
})

0 commit comments

Comments
 (0)