AE3 | R Documentation |
AE model using nuclear family trios
AE3(model, random, data, seed = 1234, n.sim = 50000, verbose = TRUE)
model |
a linear mixed model formula, see example below. |
random |
random effect, see exampe below. |
data |
data to be analyzed. |
seed |
random number seed. |
n.sim |
number of simulations. |
verbose |
a flag for printing out results. |
This function is adapted from example 7.1 of Rabe-Hesketh et al. (2008). It also procides heritability estimate and confidence intervals.
The returned value is a list containing:
lme.result the linear mixed model result.
h2 the heritability estimate.
CL confidence intervals.
Adapted from f.mbf.R from the paper.
Jing Hua Zhao
rh08gap
## Not run:
require(gap.datasets)
AE3(bwt ~ male + first + midage + highage + birthyr,
list(familyid = pdIdent(~var1 + var2 + var3 -1)), mfblong)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.