将两组与分类数据进行比较

发布于 2025-01-17 11:31:42 字数 720 浏览 2 评论 0原文

我是一个完整的新手 - 希望我能很好地解决我的问题。我将尝试澄清任何不清楚或表达不佳的东西。这里...

我有两个小组 - 新老师和经验丰富的老师,他们回答了有关课堂事件的调查问题。他们的回答已被分组为经常/有时,很少/从未分为几类。

问题1的数据看起来像这样:

经常 / smtimes稀有 /永不全部
新的11764181
被阐述5545100
总计172109281

,每个问题都有这样的结果,我想知道两组之间是否存在显着差异。由于数据都是类别的,我认为这是卡方测试,并将以下代码放入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 / SmtimesRare / NeverTotal
New11764181
Exprnced5545100
Total172109281

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文