powered by
checkcrit() is a helper function that checks if the critical values are valid.
checkcrit()
checkcrit( scrit = qnorm(c(0.01, 0.02, 0.025)), salpha = c(0.01, 0.02, 0.025), smatrix = diag(3), sided = 1 )
List with:
crit.value: Critical values
crit.value
salpha: Cumulative alpha levels passed to salpha argument
salpha
Numeric vector of critical values.
Numeric vector of cumulative alpha levels.
General correlation matrix.
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
1: Reject if test statistic is greater or equal to the critical value (one-sided)
1
0: Reject if the absolute value of the test statistic is greater than the critical value (two-sided)
0
Xiaodong Luo
Run the code above in your browser using DataLab