DT_h2 | R Documentation |
This dataset contains phenotpic data for 41 potato lines evaluated in 5 locations across 3 years in an RCBD design. The phenotypic trait is tuber quality and we show how to obtain an estimate of DT_h2 for the trait.
data("DT_h2")
The format is: chr "DT_h2"
This data was generated by a potato study.
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
The core functions of the package mmer
and mmec
####=========================================####
#### For CRAN time limitations most lines in the
#### examples are silenced with one '#' mark,
#### remove them and run the examples
####=========================================####
data(DT_h2)
DT <- DT_h2
head(DT)
####=========================================####
#### fit the mixed model (very heavy model)
####=========================================####
# ans1 <- mmer(y~Env,
# random=~vsr(dsr(Env),Name) + vsr(dsr(Env),Block),
# rcov=~vsr(dsr(Env),units),
# data=DT)
# summary(ans1)$varcomp
#
# DT=DT[with(DT, order(Env)), ]
# ans1b <- mmec(y~Env,
# random=~vsc(dsc(Env),isc(Name)) + vsc(dsc(Env),isc(Block)),
# rcov=~vsc(dsc(Env),isc(units)),
# data=DT)
# summary(ans1b)$varcomp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.