h_cullis | R Documentation |
Cullis heritability for lme4 models
h_cullis(model, genotype, re_MME = FALSE)
model |
Object of class |
genotype |
A character string indicating the column in data that contains genotypes. |
re_MME |
A logical value to ask if we want to reconstruct the mixed models
equations to estimate the Cullis heritability. ( |
A numerical value of the Cullis heritability estimate. If
re_MME
is TRUE
, a list with matrices of the mixed models
equations is returned.
Paul Schmidt, Johan Aparicio.
library(lme4)
library(agridat)
library(agriutilities)
dat <- john.alpha
g.ran <- lmer(
formula = yield ~ rep + (1 | gen) + (1 | rep:block),
data = dat
)
h_cullis(model = g.ran, genotype = "gen")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.