Learn R Programming

sommer (version 3.1)

us: us functionality

Description

This function creates internally the incidence matrices for an unstructure model when using mmer2.

Usage

us(x)

Arguments

x

a column of a dataframe.

Value

$dd

an incidence musrix with columns for the specific levels.

References

Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitusive traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744

See Also

The core functions of the package mmer and mmer2

Examples

Run this code
# NOT RUN {
data(example)
mix <- mmer2(Yield~1, 
              random=~at(Env):Block + us(Env):Name, 
              rcov=~at(Env):units, data=example)
summary(mix)
## compare with asreml, you'll get the same result
# }

Run the code above in your browser using DataLab