Learn R Programming

lmDiallel (version 1.0.1)

matBlock: Design matrix for blocks

Description

It creates a disign matrix for block effects (with sum-to-zero constraint). It is used internally

Usage

matBlock(formula)

Value

A design matrix for the block effect

Arguments

formula

a formula containing the block variables

Author

Andrea Onofri, Niccolo' Terzaroli, Luigi Russi

References

Onofri, A., Terzaroli, N. & Russi, L. Linear models for diallel crosses: a review with R functions. Theor Appl Genet (2020). https://doi.org/10.1007/s00122-020-03716-8

Examples

Run this code
data("hayman54")
matBlock(~hayman54$Block)

Run the code above in your browser using DataLab