Learn R Programming

sommer (version 1.1)

HDdata: half diallel data for corn hybrids

Description

This dataset contains phenotpic data for 21 corn hybrids, with 2 technical repetitions, coming from a half diallel design and evaluated for sugar content. The column geno indicates the hybrid and male and female origin columns are included as well. Since there's 2 technical reps the error variance obtained by REML/ML has to be divided over 2.

Usage

data("HDdata")

Arguments

format

The format is: chr "HDdata"

source

This data was generated by a corn study.

References

Covarrubias-Pazaran G (2016) sommer: An R package for mixed model analysis education. R package version 1.1. URL https://cran.r-project.org/web/packages/sommer/.

Examples

Run this code
data(HDdata)
head(HDdata)
### GCA matrix for half diallel using male and female columns
#Z1 <- hdm(HDdata[,c(3:4)]) 
#Z2 <- model.matrix(~as.factor(geno)-1, data=HDdata)# SCA matrix
#y <- HDdata$sugar # response
#ETA <- list(list(Z=Z1), list(Z=Z2)) # Zu component
#modHD <- mmer(y=y, Z=ETA, draw=FALSE, silent=TRUE)
#summary(modHD)

Run the code above in your browser using DataLab