ecm | R Documentation |
This function estimates the genotypic and phenotypic covariance and correlation matrices with data from a RCBD with one or several environments.
ecm(traits, geno, env = NULL, rep, dfr, method = 1)
traits |
The names of the columns for traits to include. |
geno |
The name of the column that identifies the genotypes. |
env |
The name of the column that identifies the environments. |
rep |
The name of the column that identifies the replications or blocks. A RCBD is assumed. |
dfr |
The name of the data frame. |
method |
The method to compute genotypic covariances. See details. |
If env = NULL
a RCBD with one environment is considered.
If method = 1
the covariances between each pair of traits are computed
using the variances of each trait and the variances of the sum. If method = 2
the covariance matrices are approximated using the average of the correlation
matrices computed with each replication in each environment.
It returns the genotypic and phenotypic covariance and correlation matrices.
Raul Eyzaguirre.
traits <- c("rytha", "bc", "dm", "star", "nocr")
ecm(traits, "geno", "loc", "rep", spg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.