Learn R Programming

lmDiallel (version 1.0.1)

hayman54: Hayman dataset for diallel analysis

Description

Data for a diallel in tobacco with 2 reps

Usage

data(hayman54)

Arguments

Format

A data.frame with 128 observations on the following 4 variables

Block

block, a factor with 2 levels

Par1

male parent, a factor with 8 levels

Par2

female parent, a factor with 8 levels

Ftime

mean flowering time (days), a numeric vector

Author

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

Run this code
data("hayman54")

contrasts(hayman54$Block) <- c("contr.sum")
dMod <- lm(Ftime ~ Block  + GCA(Par1, Par2)
             + tSCA(Par1, Par2) + RGCA(Par1, Par2)
             + RSCA(Par1, Par2), data = hayman54)
anova(dMod)
#or
dMod2 <- lm.diallel(Ftime ~ Par1 + Par2, Block = Block,
                  data = hayman54,
                  fct = "HAYMAN1")
anova(dMod2)

Run the code above in your browser using DataLab