Skip to content

Commit

Permalink
reduce running time by cutting 3 analyses into 2 analyses
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBeannie committed Nov 15, 2024
1 parent 208f505 commit 188c0aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
14 changes: 4 additions & 10 deletions R/gs_design_wlr.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#'
#' # Example 1 ----
#' # Information fraction driven design
#' \donttest{
#' gs_design_wlr(
#' enroll_rate = enroll_rate,
#' fail_rate = fail_rate,
Expand All @@ -71,13 +70,11 @@
#' lower = gs_spending_bound,
#' lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.2),
#' analysis_time = 36,
#' info_frac = 1:3/3
#' info_frac = c(0.6, 1)
#' )
#' }
#'
#' # Example 2 ----
#' # Calendar time driven design
#' \donttest{
#' gs_design_wlr(
#' enroll_rate = enroll_rate,
#' fail_rate = fail_rate,
Expand All @@ -90,14 +87,12 @@
#' upar = list(sf = gsDesign::sfLDOF, total_spend = 0.025),
#' lower = gs_spending_bound,
#' lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.2),
#' analysis_time = 1:3*12,
#' analysis_time = c(24, 36),
#' info_frac = NULL
#' )
#' }
#'
#' # Example 3 ----
#' # Both calendar time and information fraction driven design
#' \donttest{
#' gs_design_wlr(
#' enroll_rate = enroll_rate,
#' fail_rate = fail_rate,
Expand All @@ -110,10 +105,9 @@
#' upar = list(sf = gsDesign::sfLDOF, total_spend = 0.025),
#' lower = gs_spending_bound,
#' lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.2),
#' analysis_time = 1:3*12,
#' info_frac = c(0.3, 0.7, 1)
#' analysis_time = c(24, 36),
#' info_frac = c(0.6, 1)
#' )
#' }
gs_design_wlr <- function(
enroll_rate = define_enroll_rate(
duration = c(2, 2, 10),
Expand Down
14 changes: 4 additions & 10 deletions man/gs_design_wlr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 188c0aa

Please sign in to comment.