checkcrit: Check critical values

View source: R/checkcrit.r

checkcritR 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:

  • crit.value: Critical values

  • salpha: Cumulative alpha levels passed to salpha argument

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
)

MultiGroupSequential documentation built on Aug. 9, 2023, 5:10 p.m.