Description Usage Arguments Value Author(s) Examples

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

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

`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. |

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

Lai Jiang

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.