View source: R/deviation_mean_squares.R
deviation_mean_squares | R Documentation |
deviation_mean_squares
calculate variance of a genotype across environments.
deviation_mean_squares(
data,
trait,
genotype,
environment,
unit.correct = FALSE
)
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 |
Deviation mean squares (Eberhart and Russell, 1966) is calculatd based on regression function. Variety with low stability variance is considered as stable. Equation of deviation mean squares can be found in vignette file.
a data table with deviation mean squares
Tien Cheng Wang
eberhart1966toolStability
data(Data)
deviation.mean.squares <- deviation_mean_squares(
data = Data,
trait = "Yield",
genotype = "Genotype",
environment = "Environment",
unit.correct = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.