get_cond_A: Compute conditional Z matrix

Description Usage Arguments Value Author(s) Examples

View source: R/get_cond_A.R

Description

The get_cond_A function is to get the conditional A matrix by using marginal A matrix

Usage

1
get_cond_A(marginal_A, Gl, N.Gx, ridgeTerm = FALSE)

Arguments

marginal_A

the marginal effects of SNPs on the exposures (Gx).

Gl

the reference panel (Gl), such as 1000 Genome

N.Gx

the sample size of each Gx. It can be a scalar or a vector. If there are multiple X's from different Gx, it should be a vector including the sample size of each Gx. If all alphas are from the same Gx, it could be a scalar.

ridgeTerm

ridgeTerm = TRUE when the matrix L is singular. Matrix L is obtained from the cholesky decomposition of G0'G0. Default as FALSE.

Value

A matrix with conditional estimates which are converted from marginal estimates using the JAM model.

Author(s)

Lai Jiang

Examples

1
2
3
4
data(Gl)
data(betas.Gy)
data(marginal_A)
get_cond_A(marginal_A = marginal_A, Gl = Gl, N.Gx = c(339224, 659316), ridgeTerm = TRUE)

hJAM documentation built on March 26, 2020, 8:13 p.m.