metan (version 1.2.1)

Huehn: Huehn's stability statistics

Description

Performs a stability analysis based on Huehn (1979) statistics. The four nonparametric measures of phenotypic stability are: S1 (mean of the absolute rank differences of a genotype over the n environments), S2 (variance among the ranks over the k environments), S3 (sum of the absolute deviations), and S6 (relative sum of squares of rank for each genotype).

Usage

Huehn(.data, env, gen, rep, resp, verbose = TRUE)

Arguments

.data

The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).

env

The name of the column that contains the levels of the environments.

gen

The name of the column that contains the levels of the genotypes.

rep

The name of the column that contains the levels of the replications/blocks.

resp

The response variable(s). To analyze multiple variables in a single procedure use, for example, resp = c(var1, var2, var3).

verbose

Logical argument. If verbose = FALSE the code will run silently.

Value

An object of class Huehn, which is a list containing the results for each variable used in the argument resp. For each variable, a tibble with the following columns is returned.

  • GEN The genotype's code.

  • Y The mean for the response variable.

  • S1 Mean of the absolute rank differences of a genotype over the n environments.

  • S2 variance among the ranks over the k environments.

  • S3 Sum of the absolute deviations.

  • S6 Relative sum of squares of rank for each genotype.

References

Huehn, V.M. 1979. Beitrage zur erfassung der phanotypischen stabilitat. EDV Med. Biol. 10:112.

Examples

Run this code
# NOT RUN {
library(metan)
out <- Huehn(data_ge2, ENV, GEN, REP, PH)

# }

Run the code above in your browser using DataLab