get_cond_A {hJAM} | R Documentation |
Compute conditional Z matrix
Description
The get_cond_A function is to get the conditional A matrix by using marginal A matrix
Usage
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
data(Gl)
data(betas.Gy)
data(marginal_A)
get_cond_A(marginal_A = marginal_A, Gl = Gl, N.Gx = c(339224, 659316), ridgeTerm = TRUE)
[Package hJAM version 1.0.0 Index]