Skip to contents

This function takes the output from gen_sim and uses the phenotypes to estimate the genetic liability for each subject. The function estimates the liability for each configuration of phenotypes and joins these values on the existing dataframe. Subjects having the same configuration will therefore have the same estimated genetic liability.

Usage

LTFH(data, n_sib = 0, K = 0.05, h2 = 0.5)

Arguments

data

List generated from gen_sim.

n_sib

Amount of siblings.

K

The prevalance of trait.

h2

The heritability of trait.

Value

Tibble containing data$fam and estimated liabilities.