ecm: Estimate Genotypic and Phenotypic Covariance and Correlation...

Description Usage Arguments Details Value Author(s) Examples

View source: R/ecm.R

Description

This function estimates the genotypic and phenotypic covariance and correlation matrices with data from a RCBD with one or several environments.

Usage

1
ecm(traits, geno, env = NULL, rep, data, method = 1)

Arguments

traits

The traits to include.

geno

The genotypes.

env

The environments.

rep

The replications or blocks. A RCBD is assumed.

data

The name of the data frame containing the data.

method

The method to compute genotypic covariances. See details.

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.

Value

It returns the genotypic and phenotypic covariance and correlation matrices.

Author(s)

Raul Eyzaguirre.

Examples

1
2
traits <- c("rytha", "bc", "dm", "star", "nocr")
ecm(traits, "geno", "loc", "rep", spg)

reyzaguirre/st4gi documentation built on April 20, 2018, 9:11 a.m.