Test for significance of specific multiple groups in R

a 夏天 提交于 2019-12-12 05:49:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!