checkcrit {MultiGroupSequential}R Documentation

Check critical values

Description

checkcrit() is a helper function that checks if the critical values are valid.

Usage

checkcrit(
  scrit = qnorm(c(0.01, 0.02, 0.025)),
  salpha = c(0.01, 0.02, 0.025),
  smatrix = diag(3),
  sided = 1
)

Arguments

scrit

Numeric vector of critical values.

salpha

Numeric vector of cumulative alpha levels.

smatrix

General correlation matrix.

sided

Integer vector indicating the side of the test:

  • -1: Reject if test statistic is smaller than or equal to the critical value (one-sided)

  • 1: Reject if test statistic is greater or equal to the critical value (one-sided)

  • 0: Reject if the absolute value of the test statistic is greater than the critical value (two-sided)

Value

List with:

Author(s)

Xiaodong Luo

Examples

checkcrit(
  scrit = qnorm(c(0.01, 0.02, 0.025)),
  salpha = c(0.01, 0.02, 0.025),
  smatrix = diag(3),
  sided = 1
)

[Package MultiGroupSequential version 1.1.0 Index]