Learn R Programming

lme4breeding (version 1.0.80)

I.mat: Identity relationship matrix

Description

Shortcut to get an identity relationship matrix.

Usage

I.mat(x)

Value

If return.imputed = FALSE, the \(n \times n\) identity matrix is returned.

$I

the I matrix

Arguments

x

Vector of values to identify the unique values and form an iende.

Details

Nothing but a shortcut to avoid few lines of code.

References

Giovanny Covarrubias-Pazaran (2024). lme4breeding: enabling genetic evaluation in the age of genomic data. To be submitted to Bioinformatics.

Douglas Bates, Martin Maechler, Ben Bolker, Steve Walker (2015). Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software, 67(1), 1-48.

See Also

lmebreed -- the core function of the package

Examples

Run this code

## random population of 200 lines with 1000 markers


Run the code above in your browser using DataLab