Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ pkgdown
^\.covrignore$
^\.vscode$
^[.]?air[.]toml$
^CRAN-SUBMISSION$
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.9.11
Date: 2026-07-16 14:19:26 UTC
SHA: 2479aa990c7d5fb6aa87033db238b861256e3a22
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tern
Title: Create Common TLGs Used in Clinical Trials
Version: 0.9.10.9021
Version: 0.9.11
Date: 2026-07-15
Authors@R: c(
person("Joe", "Zhu", , "joe.zhu@roche.com", role = c("aut", "cre"),
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tern 0.9.10.9021
# tern 0.9.11

### Enhancements
* Added `factor_level_method` argument to `df_explicit_na()` to control factor level ordering
Expand All @@ -19,6 +19,7 @@
* In `estimate_proportion_diff` now also the standard error is available for selected methods in the `se_diff` statistic.
* Exported `h_incidence_rate()` to allow to reuse the incidence rate estimation logic.
* Exported `prop_chisq()`, `prop_cmh()`, `prop_fisher()`, and `prop_schouten()` for standalone proportion difference testing.
* Added `digits` argument to `h_tbl_median_surv()` and `control_surv_med_annot()` to control the `signif()` precision of the median survival time and confidence interval values annotated in `g_km()`. (#1469)

### Bug Fixes
* Fixed bug in `prop_diff_cmh()` which previously failed when strata combinations had 0 observations.
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-prop_diff.R
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ testthat::test_that("`estimate_proportion_diff` and strat_newcombe is compatible
" 95% CI (Stratified Newcombe, without correction)",
"B", "", "", "A", "25.39", "(3.47, 44.54)"
),
.Dim = c(3L, 3L)
dim = c(3L, 3L)
)

# Values externally validated
Expand Down
16 changes: 8 additions & 8 deletions tests/testthat/test-test_proportion_diff.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ testthat::test_that("prop_cmh also works when there are strata with just one obs
0L, 0L, 0L, 1L, 0L, 21L, 18L, 3L, 4L, 79L, 16L, 30L, 9L, 1L,
0L, 13L, 4L
),
.Dim = c(2L, 2L, 7L),
.Dimnames = list(
dim = c(2L, 2L, 7L),
dimnames = list(
grp = c("Placebo", "Treatment"),
x = c("no", "yes"),
strata = c("A", "B", "C", "D", "E", "F", "G")
Expand Down Expand Up @@ -225,8 +225,8 @@ testthat::test_that("prop_cmh with Sato variance estimator works", {
2L, 7L, 17L, 13L,
4L, 5L, 13L, 12L
),
.Dim = c(2L, 2L, 4L),
.Dimnames = list(
dim = c(2L, 2L, 4L),
dimnames = list(
grp = c("B", "A"),
rsp = c("TRUE", "FALSE"),
strata = c("S1", "S2", "S3", "S4")
Expand All @@ -244,8 +244,8 @@ testthat::test_that("prop_cmh with Sato variance estimator works", {
2L, 10L, 17L, 10L,
4L, 5L, 13L, 12L
),
.Dim = c(2L, 2L, 4L),
.Dimnames = list(
dim = c(2L, 2L, 4L),
dimnames = list(
grp = c("B", "A"),
rsp = c("TRUE", "FALSE"),
strata = c("S1", "S2", "S3", "S4")
Expand All @@ -265,8 +265,8 @@ testthat::test_that("prop_cmh with Sato variance estimator and Wilson-Hilferty t
2L, 7L, 17L, 13L,
4L, 5L, 13L, 12L
),
.Dim = c(2L, 2L, 4L),
.Dimnames = list(
dim = c(2L, 2L, 4L),
dimnames = list(
grp = c("B", "A"),
rsp = c("TRUE", "FALSE"),
strata = c("S1", "S2", "S3", "S4")
Expand Down
Loading