MCMCglmm (version 2.35)

at.set: Incidence Matrix of Combined Levels within a Factor

Description

Incidence Matrix of Combined Levels within a Factor

Usage

at.set(x, level)

Value

incidence matrix for the set level in x

Arguments

x

factor

level

set of factor levels

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

at.level

Examples

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

Run the code above in your browser using DataLab