Learn R Programming

MCMCglmm (version 2.36)

at.level: Incidence Matrix of Levels within a Factor

Description

Incidence matrix of levels within a factor

Usage

at.level(x, level)

Value

incidence matrix for level in x

Arguments

x

factor

level

factor level

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

at.set

Examples

Run this code
fac<-gl(3,10,30, labels=letters[1:3])
x<-rnorm(30)
model.matrix(~at.level(fac,"b"):x)

Run the code above in your browser using DataLab