leveneTests(iris[,1:4], iris$Species)
# handle a 1-column response?
leveneTests(iris[,1, drop=FALSE], iris$Species)
data(Skulls, package="heplots")
leveneTests(Skulls[,-1], Skulls$epoch)
# formula method
leveneTests(cbind(mb, bh, bl, nh) ~ epoch, data=Skulls)
# use 10% trimmed means
leveneTests(cbind(mb, bh, bl, nh) ~ epoch, data=Skulls, trim = 0.1)
# mlm method
skulls.mod <- lm(cbind(mb, bh, bl, nh) ~ epoch, data=Skulls)
leveneTests(skulls.mod)
Run the code above in your browser using DataLab