This function computes Harmonic Mean (HM) using any traits (like yield) under stress and non-stress conditions. The lower values of HM indicates greater tolerance. For more details see Bidinger et al. (1987) doi:10.1071/AR9870037.
Usage
HM(Gen, YN, YS)
Value
A data frame with Gen, HM.
$$HM = \frac{2 \times YN \times YS}{YN + YS}$$
Arguments
Gen
Character vector of genotype identifiers.
YN
Numeric vector: yield (any trait) under non-stress (normal) environment.
YS
Numeric vector: yield (any trait) under stress environment.