Learn R Programming

HiLMM (version 1.1)

estim_herit: Estimation of heritability in linear mixed models

Description

The function 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.

Usage

estim_herit(Y,W)

Arguments

Y
vector of observations of size n
W
matrix with n rows and N columns

Value

heritability
Heritability
CI_low
Lower bound of the confidence interval
CI_up
Upper bound of the confidence interval
standard_deviation
Standard deviation

References

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

Examples

Run this code
library(HiLMM)
data(Y)
data(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