powered by
Multitype
Multitype(y, type)
y
type
Multitype(c(0,1,0), as.factor(c("A","A","B")))
Run the code above in your browser using DataLab