Learn R Programming

toolStability (version 0.1.2)

table_stability: 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
)

Value

a data table with multiple stability indices

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.

Author

Tien-Cheng Wang

Details

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

References

doering2018toolStability pinthus1973toolStability finlay1963toolStability eberhart1966toolStability wricke1962toolStability roemer1917toolStability hanson1970toolStability lin1988toolStability shukla1972toolStability nassar1987toolStability eskridge1990toolStability

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

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

Run the code above in your browser using DataLab