将两组与分类数据进行比较
我是一个完整的新手 - 希望我能很好地解决我的问题。我将尝试澄清任何不清楚或表达不佳的东西。这里...
我有两个小组 - 新老师和经验丰富的老师,他们回答了有关课堂事件的调查问题。他们的回答已被分组为经常/有时,很少/从未分为几类。
问题1的数据看起来像这样:
经常 / smtimes | 稀有 /永不 | 全部 | |
---|---|---|---|
新的 | 117 | 64 | 181 |
被阐述 | 55 | 45 | 100 |
总计 | 172 | 109 | 281 |
,每个问题都有这样的结果,我想知道两组之间是否存在显着差异。由于数据都是类别的,我认为这是卡方测试,并将以下代码放入R中以执行此操作:
Question1 = matrix ( c(55, 117, 45, 64), nrow=2, ncol=2, byrow=TRUE)
chisq.test(Question1)
任何人都可以建议这是否是正确的测试,以及我在R中提出的代码是否执行适当测试?
I am a complete newb - I hope I have framed my question well. I will try to clarify anything that is unclear or expressed poorly. Here goes...
I have two groups - New Teachers and Experienced Teachers who have answered survey questions regarding classroom incidents. Their responses have been grouped into the categories of Often/Sometimes and Rarely/Never.
The data for Question 1 look like this:
Oft / Smtimes | Rare / Never | Total | |
---|---|---|---|
New | 117 | 64 | 181 |
Exprnced | 55 | 45 | 100 |
Total | 172 | 109 | 281 |
For each question with results like this, I want to know if there is a significant difference between the two groups. As the data is all categorical I believe this to be a chi-square test and have put the following code into r to do this:
Question1 = matrix ( c(55, 117, 45, 64), nrow=2, ncol=2, byrow=TRUE)
chisq.test(Question1)
Can anyone please advise if this is the correct test and whether the code I have put in r is performing the test appropriately?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论