[R] question regarding hypothesis testing in contingency tables

Bernardo Rangel Tura tura at centroin.com.br
Sun Jan 13 13:42:32 CET 2008


On Thu, 2008-01-10 at 09:47 -0800, eugen pircalabelu wrote:
> Hi R-users!
> 
> I have the following example:
> a<-data.frame(cat=c(5,10,15), dog=c(5,10, 15), mouse=c(10,10,20))
> b<-data.frame(cat=c(15,10,5), dog=c(15, 10, 5), mouse=c(20,10,10))
> rownames(b)<-c("scared", "happy", "sad")
> rownames(a)<-c("scared", "happy", "sad")
> 
(...)
> Another thing that i want to see , is which cells differ one from another? Eg is the 5 percent of scared dogs from sample a, 
> different from  15% of scared dogs form sample b? I would like something like the "adjusted standardized reziduals" test from SPSS?
(...)
> Thank you and have a great day!

Hi Eugen!

The adjusted standardized residuals is available in package gmodels

require(gmodels)
?CrossTable


-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil




More information about the R-help mailing list