'onewaytests bf.test error: The group variable must be a factor or a character
I am trying to perform the Brown-Forsythe test from the onewaytests package. Data is from a .sav file, from which I have taken two columns for the purpose of this test. I am getting the error The group variable must be a factor or a character. From here, I understand that it might be a bug, so I tired bf.test(vari ~ edu, data = as.data.frame(data)) but still got the same error. Any ideas?
data <- data.frame(vari = data$K1, edu = data$education)
bf.test(vari ~ edu, data = data)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
