50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

MultiGroupSequential (version 1.1.0)

findcrit: Calculate critical values

Description

findcirt() calculates the critical values in the general correlation matrix

Usage

findcrit(
  salpha = c(0.01, 0.02, 0.025),
  smatrix = diag(3),
  sided = 1,
  tol = 1e-10,
  alpha.tol = 1e-11
)

Value

List with element crit.value containing the obtained critical values.

Arguments

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)

tol

Numeric scalar with the tolerance level for computing critical values.

alpha.tol

Numeric scalar. If the alpha increment is less than this, the critical value is set to a large number determined by alpha.tol.

Author

Xiaodong Luo

Examples

Run this code
findcrit(
  salpha = c(0.01, 0.02, 0.025),
  smatrix = diag(3),
  sided = 1,
  tol = 1e-10,
  alpha.tol = 1e-11
)

Run the code above in your browser using DataLab