Running a Levenes tests using two Independent Variables.

Hi! I am running a two way ANOVA using my data and trying to test assumptions of homogeneity using a Levene's. I know how to run it in SPSS but can't seem to get the code right in R.

leveneTest(Average .75%, PCB Treatment+ Sex, center = mean)
Error in PCB Treatment + Sex : non-numeric argument to binary operator

I know that the error is telling me that the factors need to be numeric, but what if they aren't? is there any way around this?

Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers. For this question, I would have to search for the leveneTest function being used to look at its signature.

So all I can offer is Average .07* %?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.