adjusted_coefficient_of_variation calculate variance of a genotype across environments.

adjusted_coefficient_of_variation(data, trait, genotype, environment)

Arguments

data

a dataframe containing trait, genotype and environment.

trait

colname of a column containing a numeric vector of interested trait to be analyzed.

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

Value

a data table with adjusted coefficient of variation

Details

Adjusted coefficient of variaiton (Doering and Reckling, 2018) is calculatd based on regression function. Variety with low adjusted coefficient of variation is considered as stable. Equation of adjusted coefficient of variation can be found in vignette file.

References

D昼㸶ring TF, Reckling M (2018). “Detecting global trends of cereal yield stability by adjusting the coefficient of variation.” European Journal of Agronomy, 99, 30--36. ISSN 1161-0301, doi: 10.1016/j.eja.2018.06.007 .

Author

Tien-Cheng Wang

Examples

data(Data)
res <- adjusted_coefficient_of_variation(
 data = Data,
 trait = "Yield",
 genotype = "Genotype",
 environment = "Environment")