View source: R/gibbs_sampler.R
trunc_estimate | R Documentation |
Helper function for gibb_sampl()
trunc_estimate(j, phenos, K = 0.05, mu, sigma)
j |
Index for familymember. |
phenos |
A binary vector containing the phenotype for each family member of the form c(p_subject, p_parent1, p_parent2, p_sibling1, ... ,p_siblingN) where p_familymember is a binary value (1 or 2). |
K |
The prevalance of trait. |
mu |
The mean. |
sigma |
The variance. |
Truncated random value from normal distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.