powered by
AE model using nuclear family trios
AE3(model, random, data, seed = 1234, n.sim = 50000, verbose = TRUE)
The returned value is a list containing:
lme.result the linear mixed model result.
h2 the heritability estimate.
CL confidence intervals.
a linear mixed model formula, see example below.
random effect, see exampe below.
data to be analyzed.
random number seed.
number of simulations.
a flag for printing out results.
Jing Hua Zhao
This function is adapted from example 7.1 of Rabe-Hesketh et al. (2008). It also procides heritability estimate and confidence intervals.
rh08gap
if (FALSE) { require(gap.datasets) AE3(bwt ~ male + first + midage + highage + birthyr, list(familyid = pdIdent(~var1 + var2 + var3 -1)), mfblong) }
Run the code above in your browser using DataLab