Incidence Matrix of Combined Levels within a Factor
Incidence Matrix of Combined Levels within a Factor
at.set(x, level)
x |
factor |
level |
set of factor levels |
incidence matrix for the set level
in x
Jarrod Hadfield j.hadfield@ed.ac.uk
fac<-gl(3,10,30, labels=letters[1:3]) x<-rnorm(30) model.matrix(~at.set(fac,2:3):x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.