View source: R/Rfun_alpha2boundary.R
alpha2boundary | R Documentation |
This function converts cumulative alpha levels into normal critical boundaries.
alpha2boundary(
alphas,
t,
initIntvl = c(1, 2 * stats::qnorm(p = alphas[1], lower.tail = FALSE))
)
alphas |
a list of cumulative errors from some error spending functions |
t |
a vector of information times |
initIntvl |
a pair of numbers as the lower and upper bounds of critical boundaries, used for |
The current version of ldbounds::ldBounds
may not work for Hwang-Shih-DeCani boundaries.
a vector of critical boundaries
Jiangtao Gou
library(ldbounds)
tvec <- c(0.5,1)
result <- ldbounds::ldBounds(t=tvec, iuse=1, alpha=0.05, sides=1)
print(result$upper.bounds)
bd <- alpha2boundary(alphas = result$exit.pr, t=tvec)
print(bd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.