View source: R/adjusted_coefficient_of_variation.R
adjusted_coefficient_of_variation | R Documentation |
adjusted_coefficient_of_variation
calculate variance of a genotype across environments.
adjusted_coefficient_of_variation(data, trait, genotype, environment)
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 |
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.
a data table with adjusted coefficient of variation
Tien-Cheng Wang
doering2018toolStability
data(Data)
res <- adjusted_coefficient_of_variation(
data = Data,
trait = "Yield",
genotype = "Genotype",
environment = "Environment")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.