0

using R to run a Kruskal-Wallis test to see if there is a difference between 4 species plot counts, over time.

Code I'm using is:-

kruskal.test(Plot_count$SPIECES ~ Time2, data = AMO_data_long)

But don't trust the results as appear to only test if there is a difference of plot counts over time and not test the frequency of plot counts between species over time. The data set has a column for species, time and plot count. how do you group plot count per species and test the difference in species frequency over time?

enter image description here

Using SPIECES, Time2 and Plot_count in code.

suggestions welcomed.

P.S. SPIECES is spelt incorrectly but it works :p

jpsmith
  • 11,023
  • 5
  • 15
  • 36
Alex22
  • 1
  • 2
    Please dont add your data as an image, but instead edit your question to include both datasets you reference (`Plot_count` and `AMO_data_long `) as reproducible code. – jpsmith Aug 06 '23 at 16:40
  • 2
    Have you looked at the other posts regarding the K-W tests that demonstrate how to use it properly? Also, posting data sets in image is highly deprecated onSO. – IRTFM Aug 06 '23 at 16:42
  • After 4 hours waiting for a response , I’m voting to close as needing further details. – IRTFM Aug 06 '23 at 21:08

0 Answers0