Learn R Programming

lme4breeding (version 1.0.90)

mkMmeIndex: Table to track effects

Description

For an lmebreed object it creates a table to track the indices of each effect for a given slope and intercept.

Usage

mkMmeIndex(object)

Value

data frame with 4 columns:

1) index: indicates the position in the effects and PEV matrix (getCi)

2) level: the name of the level for a given effect

3) variable: the intercept effect in the model

4) group: the slope effect in the model

Arguments

object

model object of class lmebreed

Author

Giovanny Covarrubias

See Also

getCi, lmebreed

Examples

Run this code

data(DT_example)
DT <- DT_example
A <- A_example
head(DT)

## Compound simmetry (CS) model
ans1 <- lmebreed(Yield~Env + (1|Name) + (1|Env:Name),
                 data=DT)
vc <- VarCorr(ans1); print(vc,comp=c("Variance"))

head(mkMmeIndex(ans1))


Run the code above in your browser using DataLab