trunc_estimate: Returns truncated random value from normal distribution.

View source: R/gibbs_sampler.R

trunc_estimateR Documentation

Returns truncated random value from normal distribution.

Description

Helper function for gibb_sampl()

Usage

trunc_estimate(j, phenos, K = 0.05, mu, sigma)

Arguments

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.

Value

Truncated random value from normal distribution.


Holdols/genstats documentation built on June 10, 2022, 6:05 a.m.