Skip to content

Commit

Permalink
purrr dependency for the rpact GSD comparison removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidi committed Dec 12, 2024
1 parent 4c41dd3 commit a31bc9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Comp/r-east_gsd_tte.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +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 <- summary(pfs_rpact)$summaryItems |>
purrr::keep(~.x$title == "Exit probability for futility (under H0)") |>
purrr::map_dbl(~as.numeric(.x$values))
pcross_h0_fut <- summary(pfs_rpact)$summaryItems |>
Filter(\(x) x$title == "Exit probability for futility (under H0)", x = _) |>
sapply(\(x) 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])
Expand Down

0 comments on commit a31bc9f

Please sign in to comment.