Displaying 1 result from an estimated 1 matches for "postmht".
Did you mean:
postamt
2006 Dec 26
3
McNemar test in R & SPSS
Hello,
I am hoping someone can clarify why I might obtain a quite different value
in R & SPSS for a McNemar test I ran.
Firstly, here is the R syntax & output
R OUTPUT
> mctest <- as.table(matrix(c(128,29,331,430),
+ ncol =2, dimnames = list(group=c("preMHT","postMHT"),
+ assault=c("yes","no"))))
> mctest
assault
group yes no
preMHT 128 331
postMHT 29 430
> mcnemar.test(mctest,correct=F)
McNemar's Chi-squared test
data: mctest
McNemar's chi-squared = 253.3444, df = 1, p-value...