# NOT RUN {
library(metan)
# List of matrices
data <- subset(data_ge2, ENV == 'A1')
matrices <- covcor_design(data,
gen = GEN,
rep = REP,
resp = c(PH, EH, NKE, TKW))
# Genetic correlations
gcor <- covcor_design(data,
gen = GEN,
rep = REP,
resp = c(PH, EH, NKE, TKW),
type = 'gcor')
# Residual (co)variance matrix for each environment
rcov <- covcor_design(data_ge2,
gen = GEN,
rep = REP,
resp = c(PH, EH, CD, CL),
by = ENV,
type = "rcov")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab