Skip to content

Commit cd37c56

Browse files
Update R/sequential_pval.R
improve the decision of binding and non-binding Co-authored-by: John Blischak <jdblischak@gmail.com>
1 parent 34eb095 commit cd37c56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/sequential_pval.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ sequential_pval <- function(gs_design,
7272

7373
# check if gs_design is 1-sided, or has non-binding futility bounds
7474
one_sided <- all(gs_design$bound$bound == "upper")
75-
nonbinding <- gs_design$input$binding == FALSE
75+
nonbinding <- !gs_design$input$binding
7676
if (!(one_sided || nonbinding)) stop("gs_design must be one-sided or have non-binding futility bounds")
7777

7878
# if event is specified, check if it is an increasing numerical vector

0 commit comments

Comments
 (0)