Learn R Programming

lme4breeding (version 1.0.90)

Dtable: Get the hypertable for predictions

Description

For an lmebreed object it creates a template for the hypertable indication.

Usage

Dtable(object)

Value

A data frame with columns; variable, group, type, include, average.

A pure "include" term means that the model matrices for that fixed or random effect is filled with 1's for the positions where column names and row names match.

An "include and average" term means that the model matrices for that fixed or random effect is filled with 1/#1's in that row.

An "average" term alone means that all rows for such fixed or random effect will be filled with 1/#levels in the effect.

If a term is not considered "include" or "average" is then totally ignored in the BLUP and SE calculation.

The default behavior when the user doesn't provide the hyperTable is to include and average any fixed effect that is not part of classify. Include any term making a perfect match with the classify argument and include and average any imperfect match with classify argument (e.g., interactions).

Arguments

object

model object of class lmebreed

Author

Giovanny Covarrubias

See Also

image, 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"))
Dtable(ans1)


Run the code above in your browser using DataLab