Function to compute data-driven covariance matrices from summary statistics using PCA, FLASH and the sample covariance. These matrices are de-noised using Extreme Deconvolution.
a list with two elements. 1 - Bhat, a numeric vector of regression coefficients. 2 - Shat, a numeric vector of of standard erros for the regression coefficients.
scalar indicating the threshold for selecting the effects to be used for computing the covariance matrices based on false local sign rate (lfsr) for a response-by-response ash analysis.
indicating the number of principal components to be selected.
factors "default" to use flashr
default function to initialize factors, currently udv_si
.
"nonneg" to implement a non-negative constraint on the factors
whether or not factors corresponding to singleton matrices should be removed from output.
an r x r correlation matrix for the residuals; must be positive definite.
A list containing the (de-noised) data-driven covariance matrices.