powered by
Internal function to accept the input as unsorted Z-statistics and either a matrix or vector of correlations, and return the t_vec and pairwise_cors. Also do limited error checking.
parse_input(test_stats, cor_mat = NULL, pairwise_cors = NULL)
A list with the elements:
The sorted magnitudes of test statistics
The vector of all pairwise correlations
All test statistics in the set
The correlation matrix of the test statistics
parse_input(test_stats=rnorm(5), pairwise_cors=rep(0.3,10))
Run the code above in your browser using DataLab