| xmu_gsem_expand_snp | R Documentation |
Takes a baseline covariance structure (covstruc) of traits and incorporates the
summary statistics of a single SNP to produce a combined (k+1) \times (k+1)
covariance matrix (S) and corresponding asymptotic covariance matrix (V).
xmu_gsem_expand_snp(
covstruc,
beta_i,
se_i,
varSNP_i,
varSNPSE2,
GC = "standard",
coords = NULL
)
covstruc |
A list containing the base trait covariance matrix |
beta_i |
Numeric vector of length $k$. The GWAS betas (effects) of the SNP on the $k$ traits. |
se_i |
Numeric vector of length $k$. The GWAS standard errors for the SNP on the $k$ traits. |
varSNP_i |
Numeric. The variance of the SNP (typically |
varSNPSE2 |
Numeric. The asymptotic variance of the SNP's variance estimate. |
GC |
Character. Genomic control method applied to the cross-trait sampling covariances.
Options are |
coords |
Optional matrix mapping coordinates for the asymptotic covariance matrix. |
A list containing:
S: The expanded (k+1) \times (k+1) covariance matrix.
V: The expanded ((k+1)(k+2)/2) \times ((k+1)(k+2)/2) asymptotic covariance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.