calc_gliab | R Documentation |
This is an internal helper function to used to calculate genetic liabilities.
calc_gliab(obj, beta, mu, sigma)
obj |
A matrix consisting of 0s, 1s or 2s, where each row represents a genotype. |
beta |
List of beta values. |
mu |
List of mu values to normalize on. |
sigma |
List of sigma values to normalize on. |
The function returns a vector of genetic liabilities for each genotype.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.