1 year ago
#344670
PPchs
Comparing two groups with categorical data
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?
r
chi-squared
categorical
0 Answers
Your Answer