REC: Reciprocal Effect not parted into RGCA and RSCA

View source: R/model.matrix.diallel_v2.00.R

RECR Documentation

Reciprocal Effect not parted into RGCA and RSCA

Description

Build incidence matrix to fit reciprocal effects in Griffing's model 1, 2, 4 (REC) and 3 (REC.G3) with lm function

Usage

REC(P1, P2, type = "fix", data)

Arguments

P1

a variable for the first parent

P2

a variable for the second parent

type

a variable for model selection. May be "fix" (fixed model) or "random" (random model).

data

a 'data.frame' where to look for explanatory variables

Details

a design matrix of n-1 parentals

Value

A design matrix for the reciprocal (REC) 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")
dMod<-lm(Ftime~ Block + GCA(Par1,Par2)
         +tSCA(Par1, Par2)+REC(Par1, Par2)
         , data = hayman54)
anova(dMod)

OnofriAndreaPG/lmDiallel documentation built on April 23, 2023, 1:39 p.m.