I have a matrix, where each row is a sample taken from 100 objects. I have taken 30 samples, which results in a 30 x 100 matrix. I want to use the Fligner and bartlett tests to show the variances are homogeneous. Here's some sample code.
data <- Matrix[1:30,]
groups <- factor(rep(letters[1:30], each = 100))
fligner.test(data,groups)
I've gotten the test to work for test data of smaller size (4x6), but it does not for my own data. I keep getting the following error:
Error in complete.cases(x, g) : not all arguments have the same length