estimate_null_correlation_simple | R Documentation |
Estimates a null correlation matrix from data using simple z score threshold
estimate_null_correlation_simple(data, z_thresh = 2, est_cor = TRUE)
data |
a mash data object, eg as created by |
z_thresh |
the z score threshold below which to call an effect null |
est_cor |
whether to estimate correlation matrix (TRUE) or the covariance matrix (FALSE). |
Returns a simple estimate of the correlation matrix (or covariance matrix) among conditions under the null. Specifically, the simple estimate is the empirical correlation (or covariance) matrix of the z scores for those effects that have (absolute) z score < z_thresh in all conditions.
simdata = simple_sims(50,5,1)
data = mash_set_data(simdata$Bhat, simdata$Shat)
estimate_null_correlation_simple(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.