elston: Elston Index

View source: R/elston.R

elstonR Documentation

Elston Index

Description

Function to compute the Elston index (Elston, R. C., 1963).

Usage

elston(
  traits,
  geno,
  env = NULL,
  rep = NULL,
  dfr,
  means = c("single", "fitted"),
  lb = 1
)

Arguments

traits

List of traits.

geno

The genotypes.

env

The environments.

rep

The replications.

dfr

The name of the data frame.

means

The genotypic means to compute the index, "single" or "fitted". The default is "single". See details for more information.

lb

Lower bound. 1 for k = min(x) and 2 for k = (n \times min(x) - max(x)) / (n - 1)

Details

The Elston index is a weight free index. It is assumed that all the traits are in the same direction where the highest the value the better the genotype. To include any trait with an opposite direction it must be transformed by multiplication by -1 before.

If means = "fitted" then a linear model is fitted and used to estimate the means for each genotype. If means = "single" and env is specified, then single arithmetic means are computed over the replications for each genotype at each environment and then for each genotype over environments. If means = "single" and env is not specified, then single arithmetic means are computed over all the observations for each genotype.

Value

It returns a data frame with the genotypic means for each trait, the Elston index, and the rank for each genotype according to the index.

Author(s)

Raul Eyzaguirre.

References

Elston, R. C. (1963). A weight-free index for the purpose of ranking or selection with respect to several traits at a time. Biometrics. 19(1): 85-97.

Examples

elston(c("rytha", "bc", "dm", "star", "nocr"), "geno", dfr = spg)

reyzaguirre/st4gi documentation built on March 14, 2024, 9:26 p.m.