DT_legendre | R Documentation |
A data frame with 4 columns; SUBJECT, X, Xf and Y to show how to use the Legendre polynomials in the mmer function using a numeric variable X and a response variable Y.
data("DT_legendre")
The format is: chr "DT_legendre"
This data was simulated for fruit breeding applications.
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
####=========================================####
#### For CRAN time limitations most lines in the
#### examples are silenced with one '#' mark,
#### remove them and run the examples using
#### command + shift + C |OR| control + shift + C
####=========================================####
# you need to install the orthopolynom library to do random regression models
# library(orthopolynom)
# data(DT_legendre)
# DT <- DT_legendre
# mRR2<-mmer(Y~ 1 + Xf
# , random=~ vsr(usr(leg(X,1)),SUBJECT)
# , rcov=~vsr(units)
# , data=DT)
# summary(mRR2)$varcomp
#
# mRR2b<-mmec(Y~ 1 + Xf
# , random=~ vsc(usc(leg(X,1)),isc(SUBJECT))
# , rcov=~vsc(isc(units))
# , data=DT)
# summary(mRR2b)$varcomp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.