tests/testit/test-developer-gs_spending_bound.R

assert("gs_spending_bound() does not execute as expected", {
  (is.numeric(b <- gs_spending_bound()))
  (is.numeric(a <- gs_spending_bound(efficacy = FALSE)))
  hgm1_0 <- gsDesign2:::h1(theta = 0, info = 1, a = a, b = b)
  hgm1_1 <- gsDesign2:::h1(theta = .1, info = 1, a = a, b = b)
  (is.numeric(b2 <- gs_spending_bound(k = 2, theta = 0, hgm1 = hgm1_0)))
  (is.numeric(a2 <- gs_spending_bound(k = 2, theta = .1, hgm1 = hgm1_1, efficacy = FALSE)))
})

Try the gsDesign2 package in your browser

Any scripts or data that you put into this service are public.

gsDesign2 documentation built on July 1, 2026, 1:08 a.m.