Learn R Programming

lmDiallel (version 1.0.1)

diallelMod-methods: 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 diallelMod
glht(model, linfct, ...)

Value

summary Returns the full list of genetical parameters

Arguments

model

a model object (OPTIONAL)

linfct

a diellel.eff() function

...

Other optional arguments

Details

...

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
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))

Run the code above in your browser using DataLab