ecovalence calculate genetic and environmental interaction.

ecovalence(
  data,
  trait,
  genotype,
  environment,
  unit.correct = FALSE,
  modify = 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 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.

modify

logical, default is FALSE, returning the original ecovalence; when TRUE, returning modified ecovalence in consideration of number of environment.

Value

a data table with ecovalence

Details

Ecovalence (Wricke, 1962) is calcualted based on square and sum up the genotype–environment interaction all over the environment. Variety with low ecovalence is considered as stable. Equation of ecovalence can be found in vignette file.

References

Wricke G (1962). “搼㹣ber eine Methode zur Erfassung der 搼㸶kologischen Streubreite in Feldversuchen.” Zeitschrift f昼㹣r Pflanzenz昼㹣chtung, 47, 92--96.

Author

Tien-Cheng Wang

Examples

data(Data)
eco.valence <- ecovalence(
 data = Data,
 trait = "Yield",
 genotype = "Genotype",
 environment = "Environment",
 unit.correct = FALSE,
 modify=FALSE)