methods.glht: Functions to retreive full list of genetical effects

diallelMod-methodsR Documentation

Functions to retreive full list of genetical effects

Description

Diallel model parameters are estimated under a set of restrictions and, therefore, the methods 'coef' and 'summary' do not return the full list of genetical parameters. Therefore, the 'glht.diallelMod' method can be used, which works by way of a series of helper functions, providing the necessary contrast matrices.

Usage

## S3 method for class 'diallelMod'
glht(model, linfct, ...)

Arguments

model

a model object (OPTIONAL)

linfct

a diellel.eff() function

...

Other optional arguments

Details

...

Value

summary Returns the full list of genetical parameters

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

library(lmDiallel)
library(multcomp)

# Data with replicates
data("hayman54")

fit <- lm.diallel(Ftime ~ Par1 + Par2, data = hayman54,
                  fct = "HAYMAN1")
summary(fit)
anova(fit)
gh <- glht(linfct = diallel.eff(fit))

lmDiallel documentation built on April 19, 2023, 5:10 p.m.