Learn R Programming

HiLMM (version 1.1)

HiLMM-package: Estimation of heritability in linear mixed models

Description

The package contains two functions: estim_herit computes heritability when the random effects follow either a Gaussian distribution or a mixture of a Dirac and a Gaussian distribution. It also provides a confidence interval of heritability when the random effects are Gaussian. The function data_simu allows the user to generate dataset which are compatible wit the arguments of HiLMM.

Arguments

Details

Package:
HiLMM
Type:
Package
Version:
1.0
Date:
2014-04-10
License:
GPL-2

References

The method is developped in the paper "Heritability estimation in sparse high dimensional linear mixed models" (A.Bonnet,E.Gassiat,C.Levy-Leduc,2014)

Examples

Run this code
library(HiLMM)
data_HiLMM=data_simu(100,1000,0.7,1)
Y=data_HiLMM$Y
W=data_HiLMM$W
estim_herit(Y,W)$heritability 
estim_herit(Y,W)$CI_low
estim_herit(Y,W)$CI_up
estim_herit(Y,W)$standard_deviation

Run the code above in your browser using DataLab