parse_input: parse_input.R

View source: R/parse_input.R

parse_inputR Documentation

parse_input.R

Description

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.

Usage

parse_input(test_stats, cor_mat = NULL, pairwise_cors = NULL)

Arguments

test_stats

All test statistics in the set

cor_mat

The correlation matrix of the test statistics

pairwise_cors

The vector of all pairwise correlations

Value

A list with the elements:

t_vec

The sorted magnitudes of test statistics

pairwise_cors

The vector of all pairwise correlations

Examples

parse_input(test_stats=rnorm(5), pairwise_cors=rep(0.3,10))

GBJ documentation built on May 29, 2024, 1:33 a.m.