calgsp1 | R Documentation |
calgsp1()
calculates the group-sequential p-values for one hypothesis.
calgsp1(
sx = qnorm(1 - c(0.03, 0.04, 0.01)),
scrit = qnorm(1 - c(0.01, 0.02, 0.025)),
salpha = c(0.01, 0.02, 0.025),
smatrix = diag(3),
sided = 1
)
sx |
Numeric vector of test statistics, assumed to be multivariate
normal with variance 1 and correlation matrix given by |
scrit |
Numeric vector of sequece of critical values for the test
statistics in |
salpha |
Numeric vector of cumulative alpha levels for the test
statistics in |
smatrix |
Matrix with the correlation matrix of the test statistics |
sided |
Integer scalar indicating the side of the test:
|
List containing the group-sequential p-values.
Xiaodong Luo
calgsp1(
sx = qnorm(1 - c(0.03, 0.04, 0.01)),
scrit = qnorm(1 - c(0.01, 0.02, 0.025)),
salpha = c(0.01, 0.02, 0.025),
smatrix = diag(3),
sided = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.