coefficient_of_determination: Coefficient of determination

View source: R/coefficient_of_determination.R

coefficient_of_determinationR Documentation

Coefficient of determination

Description

coefficient_of_determination calculate variance of a genotype across environments.

Usage

coefficient_of_determination(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 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

Details

Coefficient of determination (Pinthus, 1976) is calculatd based on regression function. Variety with low coefficient of determination is considered as stable. Equation of coefficient of determination can be found in vignette file.

Value

a data table with coefficient of determination

Author(s)

Tien-Cheng Wang

References

\insertRef

pinthus1973toolStability

Examples

data(Data)
coef.of.determination <- coefficient_of_determination(
 data = Data,
 trait = "Yield",
 genotype = "Genotype",
 environment = "Environment")

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