GCA {lmDiallel} | R Documentation |
General Combining Ability effect
Description
GCA effect to fit Hayman1 & 2 and Griffing 1 & 2 models with lm
function
Usage
GCA(P1,P2,type = "fix", data)
Arguments
P1 |
|
P2 |
|
type |
|
data |
|
Details
a design matrix of n-1 parentals
Value
A design matrix for the GCA 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")
contrasts(hayman54$Block) <- "contr.sum"
dMod<-lm(Ftime ~ Block + GCA(Par1,Par2)
+ tSCA(Par1, Par2) + RGCA(Par1, Par2)
+ RSCA(Par1,Par2), data = hayman54)
anova(dMod)
[Package lmDiallel version 1.0.1 Index]