diallelMod-methods | R Documentation |
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.
## S3 method for class 'diallelMod'
glht(model, linfct, ...)
model |
a model object (OPTIONAL) |
linfct |
a diellel.eff() function |
... |
Other optional arguments |
...
summary
Returns the full list of genetical parameters
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
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.