Message-ID: <18E2A8E5-622F-4E33-9DE4-0BC620849F3D@comcast.net>
Date: 2010-01-06T04:10:05Z
From: David Winsemius
Subject: chi-squared test
In-Reply-To: <a9b0b0a91001051753h1d81deb8yfc387ae98be14cc9@mail.gmail.com>
On Jan 5, 2010, at 8:53 PM, Xanthe Walker wrote:
> I would like to do a chi-squared test on the following matrix:
>
> CP<-
> matrix
> (c
> (26,17,9,27,8,9,9,8,29,9,6,17,81,7,43,36,2,4,3,0,5,1,0,12,29,9,12,19,0,0
> ),nrow=3)
>
> dimnames(CP) <-
> list
> (c
> ("less10
> ","bt10and50
> ","more50"),c("T10","T9","T8","T7","T6","T5","T4","T3","T2","T1"))
>
>
> I want to set the expected values as 26, 17, 9 (ie. the data from
> T10).
>
> How do assign expected values and complete the Chi-squared test?
You ought to look (more closely?) at the examples in chisq.test.
>
>
> Cheers
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT