Perform diagnosis to check the consistency between the GWAS z-scores and LD matrix, and detect problematic z-scores (e.g. allele switch issue) using diagnostic functions from SuSiE RSS.

LD_diagnosis_susie_rss(z, R, n)

Arguments

z

z scores.

R

LD correlation matrix.

n

The sample size. (Optional, but highly recommended.)

Value

a data frame of expected z-scores and test statistics from susieR::kriging_rss.