From 4d078f0216434988f159367fd7fbe1626d43d4af Mon Sep 17 00:00:00 2001 From: Sidi Date: Wed, 11 Dec 2024 17:09:41 -0500 Subject: [PATCH] update renv for gsDesign/gsDesign2 and the comparison code for latest rpact --- Comp/r-east_gsd_tte.qmd | 5 +++-- renv.lock | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Comp/r-east_gsd_tte.qmd b/Comp/r-east_gsd_tte.qmd index 4cea64b5..8a6057e9 100644 --- a/Comp/r-east_gsd_tte.qmd +++ b/Comp/r-east_gsd_tte.qmd @@ -410,7 +410,9 @@ pval_fut <- pfs_rpact$futilityBoundsPValueScale zval_eff <- pfs_rpact_gsd$criticalValues zval_fut <- pfs_rpact_gsd$futilityBounds pcross_h0_eff <- pfs_rpact_gsd$alphaSpent -pcross_h0_fut <- as.numeric(summary(pfs_rpact)$summaryItems[[20]]$values[[1]]) +pcross_h0_fut <- summary(pfs_rpact)$summaryItems |> + purrr::keep(~.x$title == "Exit probability for futility (under H0)") |> + purrr::map_dbl(~as.numeric(.x$values)) ia1_eff <- c(zval_eff[1], pval_eff[1], hr_bound_eff[1], pcross_h0_eff[1], pcross_h1_eff[1]) fa_eff <- c(zval_eff[2], pval_eff[2], hr_bound_eff[2], pcross_h0_eff[2], pcross_h1_eff[2]) @@ -461,7 +463,6 @@ pfs_rpact_sum |> ``` - ```{r} sessionInfo() ``` diff --git a/renv.lock b/renv.lock index 7d0fc170..2b67fef7 100644 --- a/renv.lock +++ b/renv.lock @@ -1895,7 +1895,7 @@ }, "gsDesign": { "Package": "gsDesign", - "Version": "3.6.4", + "Version": "3.6.5", "Source": "Repository", "Repository": "CRAN", "Requirements": [ @@ -1918,7 +1918,7 @@ }, "gsDesign2": { "Package": "gsDesign2", - "Version": "1.1.2", + "Version": "1.1.3", "Source": "Repository", "Repository": "CRAN", "Requirements": [