Warning message during a Dunn test

Hello,

I used the following code to do a Dunn test:

install.packages("FSA")
library(FSA)
DT = dunnTest(Plasma_osmolality ~ Treatment,data=my_data, method="bh")
DT

While I get the results, I also keep getting the error message: "Warning message: treatment was coerced to a factor"
I'm not sure what this means. Could someone please help?

TIA

This just means that the Treatment variable had not been created as a factor. You can change it within the my_data object with as.factor. See the FAQ: How to do a minimal reproducible example reprex for beginners

Could you please tell me how I could do so? I've looked it up but I can't find a way.

Again, please see the FAQ: How to do a minimal reproducible example reprex for beginners so that your my_data or similar data can be used to illustrate the question.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.