Hello everyone, I'm trying to build Levene's test. The below command is what I used to do the test, I also included the error it prompts up and some data example that I used when trying to build the test. Can someone please tell me what did I do wrong? thanks in advance!
> res=lm(as.matrix(xx$B_Leth)~as.factor(xx$Wt_Leth)) > resid=abs(res$residuals) > lev=lm(resid~as.factor(xx$Wt_Leth)) > mvlev=manova(lev) Error in manova(lev) : need multiple response B_Leth Wt_Leth 3.286283997 520.6454552 0.330248 0 1.384456001 0 6.790178998 51.51418019 7.485009002 62.28921398 1.270781 1002.39553 2.117207998 1830.16527 20.121207 63.49777279 -- View this message in context: http://n4.nabble.com/Problems-faced-with-Levene-Test-using-R-tp1693699p1693699.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.