Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

at.level

Incidence Matrix of Levels within a Factor


Description

Incidence matrix of levels within a factor

Usage

at.level(x, level)

Arguments

x

factor

level

factor level

Value

incidence matrix for level in x

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

Examples

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

MCMCglmm

MCMC Generalised Linear Mixed Models

v2.32
GPL (>= 2)
Authors
Jarrod Hadfield
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.