Skip to content

chisq.test vs manual calculation - why are different results produced?

2 messages · Louise Mair, David Winsemius

#
On Feb 20, 2012, at 5:57 AM, Louise Mair wrote:

            
There's an error with that code.
Read the help page Details section .... end of second paragraph.

You probably wanted:

chisq.test(cbind(data$observed, data$predicted))
Plain text is requested as the mail format.


David Winsemius, MD
West Hartford, CT