问题
The data looks as follows:
> data <- read.csv("data.csv")
> head(data)
ï..class.1 rev.1 class.2 rev.2
1 7 136.9900 1318 31.9900
2 1223 24.0984 1001 0.0000
3 1318 61.9900 6851 104.2655
4 1014 39.9800 1318 29.9800
5 7 32.9800 7 52.9900
6 291 107.6674 797 31.2741
I want to perform a significance test to compare the means of rev.1 and rev.2 ONLY where groups class.1=class.2. I tried doing this with ANOVA but am having issues only comparing the groups that I want. Any guidance would be greatly appreciated!
来源:https://stackoverflow.com/questions/47999190/test-for-significance-of-specific-multiple-groups-in-r