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 FALSE, returning the stability index with unit equals to squared unit of trait; when TRUE, returning stability index with the unit as same as unit of trait.'
Author
Tien-Cheng Wang
Details
Genotypic superiority measure (Lin and Binns, 1988) is calculatd based on means square distance between maximum value of environment j and genotype i.
Variety with low genotypic superiority measure is considered as stable.
Equation of genotypic superiority measure can be found in vignette file.