h2: Broad sense heritability in G + E + GxE models

View source: R/H2.R

h2R Documentation

Broad sense heritability in G + E + GxE models

Description

h2 is a function to estimate broad sense heritaiblity of multienvironmental trials from the variance components of an lme4 model object. It only considers the two-way interaction between genotypes and environments.

Usage

h2(lm = lm, varg = "g", varge = "g:trt", reps = NULL, envs.col = NULL)

Arguments

lm

Is an lme4 model object with a GxE term.

varg

Is the genetic variance as expressed in the lme4 model object

varge

is the GxE variance as expressed in the lme4 object

reps

Is the name of the column in the data frame that contains the reps

envs.col

Is the name of the column in the data frame that contains the envrionments, treatments, etc.


leocrh/FPGC documentation built on Nov. 15, 2024, 2:46 a.m.

Related to h2 in leocrh/FPGC...