Description Usage Arguments Value Author(s) References Examples
Assuming a block diagonal structure of the correlation matrix, the function calculates and empirical Bayes estimate of the original covariance matrix. The aim is to reduce false discovery rates by pooling information on the levels of correlations between elements in the same blocks. The blocks can have different levels of true correlation between them. The algorithm searches the space of possible correlation values and estimates the final correlation by and average of all non zero estimates.
1 |
Covmat |
A sample covariance matrix. Must be positive semi-definite, is converted to a correlation matrix in the algorithm. |
delta |
This parameter gives the size of the range of correlation values that are considered in one iteration. The larger the value the more the values will be pooled to the overall correlation of the full matrix. Default 0.1 |
shift |
The shift parameter determines how much the lower bound of the range of correlation values is moved by through each iteration. The larger the value the fewer iterations. Default 0.05. |
cutoff |
Optional - If the average correlations for a given block are below this value then the prior for this block is set to be the independence prior. |
startlambda |
This determines a lower noise level for the correlations, for example, it defaults to 0.5. This means that all correlation values below 0.5 will be set to zero (assumed to be noise). |
n |
The number of samples (replicates) used to calculate Covmat |
Returns the estimated correlation matrix.
C. Pacini
Champion, C. J. (2003). Empirical Bayesian estimation of normal variances and covariances. Journal of Multivariate Analysis, 87(1), 60-79
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.