Skip to content

Commit

Permalink
running time of gs_design_wlr example is > 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBeannie committed Nov 14, 2024
1 parent 67e7423 commit 208f505
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/gs_design_wlr.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#'
#' # Example 1 ----
#' # Information fraction driven design
#' \donttest{
#' gs_design_wlr(
#' enroll_rate = enroll_rate,
#' fail_rate = fail_rate,
Expand All @@ -72,9 +73,11 @@
#' analysis_time = 36,
#' info_frac = 1:3/3
#' )
#' }
#'
#' # Example 2 ----
#' # Calendar time driven design
#' \donttest{
#' gs_design_wlr(
#' enroll_rate = enroll_rate,
#' fail_rate = fail_rate,
Expand All @@ -90,9 +93,11 @@
#' analysis_time = 1:3*12,
#' 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 @@ -108,6 +113,7 @@
#' analysis_time = 1:3*12,
#' info_frac = c(0.3, 0.7, 1)
#' )
#' }
gs_design_wlr <- function(
enroll_rate = define_enroll_rate(
duration = c(2, 2, 10),
Expand Down
6 changes: 6 additions & 0 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 208f505

Please sign in to comment.