Learn R Programming

MultiGroupSequential (version 1.1.0)

checkcrit: 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
)

Value

List with:

  • crit.value: Critical values

  • salpha: Cumulative alpha levels passed to salpha argument

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)

Author

Xiaodong Luo

Examples

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

Run the code above in your browser using DataLab