
Effective number of independent tests from a correlation matrix
Source:R/multiple_testing.R
n_effective_tests.RdNative eigenvalue closed forms that reproduce poolr::meff
(methods "galwey", "liji", "nyholt"), including
its conventions: Galwey sets negative eigenvalues to zero, Li-Ji
works on \(|\lambda_i| + \sqrt{\epsilon}\), Nyholt uses all
eigenvalues, and the estimate is rounded down to an integer.
Usage
n_effective_tests(correlation_matrix, method = c("galwey", "li_ji", "nyholt"))Value
Effective number of tests: floor() of the estimator,
bounded below by 1.