I am doing some analysis on R. I am trying to test capture rates against season, habitat, and species.
The data is non-parametric so I am able to use kruskal.test(`Capture rate` ~ Season, data = data)
for example to check for the significance of season, and similarly for the other factors individually. I would like to check for interactions between these factors, namely season:species
, season:habitat
, and species:habitat
How can I do this?
Follow-up question: I would also like to run the Dunn test for the pairwise differences of the interactions. I would like to know how I can do this as well.
Thanks in advance