Skip to contents

This function finds all the unique status configurations in the data and calculates the mean posterior genetic liability for each of these unique configurations using gibbs sampling. The calculated posterior mean genetic liabilities are then matched to each person in the dataset and used to perform GWAS.

Usage

LTFH(rds.obj, prevalence, h2)

Arguments

rds.obj

A list object with an FBM.code256 and accompanying FAM and MAP tibbles.

prevalence

Number specifying prevalence of disease in the population.

h2

Number specifying heritability parameter.

Value

A list with 3 values: the GWAS output, the calculated posterior mean genetic liabilities, and a data frame with the configurations and the associated posterior mean genetic liabilities.