View source: R/getHeritability.R
| getHeritability | R Documentation |
Computes the generalized heritability of a random-effect term from a fitted linear mixed model. By default, a single scalar heritability value is returned. Optionally, a spectral decomposition is provided that reveals how genetic signal is distributed across estimable genetic directions.
getHeritability(obj, geno.term, type = c("scalar", "spectral"), tol = 1e-08)
obj |
An object of class |
geno.term |
A character string giving the name of the genetic random-effect term. |
type |
Character string specifying the output:
|
tol |
Numerical tolerance used to determine the estimable genetic space. |
Generalized heritability is defined as the proportion of estimable genetic signal retained by the design relative to the available genetic capacity, accounting for the genetic covariance structure.
For independent genotypes, this definition reduces to classical generalized heritability measures based on effective dimension (Cullis, Oakey, Rodríguez-Álvarez). When genotypes are correlated, the spectral decomposition reveals anisotropy in information retention across genetic directions.
If type = "scalar", a numeric value giving the generalized heritability.
If type = "spectral", a data frame with columns:
Index of the spectral component
Canonical heritability for the component
Weight of the component (genetic capacity)
Contribution of the component to total heritability
In the spectral case, the scalar generalized heritability is also available as
the attribute "h2_G".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.