genotypic_stability {toolStability} | R Documentation |
Genotypic stability
Description
genotypic_stability
calculate variance of a genotype across environments.
Usage
genotypic_stability(data, trait, genotype, environment, unit.correct = FALSE)
Arguments
data |
a dataframe containing trait, genotype and environment. |
trait |
colname of a column containing a numeric vector of interested trait to be analysized. |
genotype |
colname of a column containing a character or factor vector labeling different genotypic varieties |
environment |
colname of a column containing a character or factor vector labeling different environments |
unit.correct |
logical, default is |
Details
Genotypic stability (Hanson, 1970) is calculatd based on regression function. Variety with low stability variance is considered as stable. Equation of genotypic stability can be found in vignette file.
Value
a data table with genotypic stability
Author(s)
Tien-Cheng Wang
References
Hanson WD (1970). “Genotypic stability.” Theoretical and Applied Genetics, 40(5), 226–231. ISSN 1432-2242, doi: 10.1007/BF00285245.
Examples
data(Data)
genotypic.stability <- genotypic_stability(
data = Data,
trait = "Yield",
genotype = "Genotype",
environment = "Environment",
unit.correct = FALSE)