MatBlock: Design matrix for blocks

matBlockR Documentation

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)

Arguments

formula

a formula containing the block variables

Value

A design matrix for the block effect

Author(s)

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

data("hayman54")
matBlock(~hayman54$Block)

OnofriAndreaPG/lmDiallel documentation built on April 23, 2023, 1:39 p.m.