table_stability: Table of stability indices

View source: R/table_stability.R

table_stabilityR Documentation

Table of stability indices

Description

table_stability export all the stability indices in the package.

Usage

table_stability(
  data,
  trait,
  genotype,
  environment,
  lambda,
  normalize = FALSE,
  unit.correct = FALSE
)

Arguments

data

a data frame 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(s) of a column containing a character or factor vector labeling different environments, if input is a vector containing multiple column names, then it will be merged into single environment column in the function.

lambda

the minimal acceptable value of trait that the user expected from crop across environments. Lambda should between the ranges of trait vlaue.

normalize

logical, default is FALSE, indicating whether stability indices should be normalized to the range from 0 to 1, where 1 refer to stable and 0 is unstable.

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.

Details

Combine all stability indices in this package and export as a table, including mean trait, normality of the trait across environment.

Value

a data table with multiple stability indices

Author(s)

Tien-Cheng Wang

References

\insertRef

doering2018toolStability \insertRefpinthus1973toolStability \insertReffinlay1963toolStability \insertRefeberhart1966toolStability \insertRefwricke1962toolStability \insertRefroemer1917toolStability \insertRefhanson1970toolStability \insertReflin1988toolStability \insertRefshukla1972toolStability \insertRefnassar1987toolStability \insertRefeskridge1990toolStability

See Also

adjusted_coefficient_of_variation

coefficient_of_determination

coefficient_of_regression

deviation_mean_squares

ecovalence

environmental_variance

genotypic_stability

genotypic_superiority_measure

stability_variance

variance_of_rank

safety_first_index

Examples

data(Data)
tb <- table_stability(
 data = Data,
 trait = "Yield",
 genotype = "Genotype",
 environment = "Environment",
 lambda = median(Data$Yield),
 normalize = TRUE,
 unit.correct=TRUE)

toolStability documentation built on March 31, 2023, 11:50 p.m.