[S] fisher.test

DR. L.Y. HIN (z044106@mailserv.cuhk.edu.hk)
Thu, 05 Mar 1998 00:10:09 +0800


I am trying to apply Fisher's exact test to test the independence of two
methods of intubation (method 1 and method 2). Success is represented as 1,
while failure is 0.

method1<-1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

method2<-0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0

fisher.test(method1,method2)

Error in fisher.test(method1, method2): both categories must have at least
two levels.
Dumped

As far as I understand, Fisher's exact test deals with zero-cell phenomenon.

Ref:
1. Sidney Siegel, NJ Castellan Jr. Nonparametric statistics for the
behavioral sciences (2nd edition) pp.103-109. McGraw Hill 1988.

2. A. Agresti Categorical data analysis. pp.60 Wliey 1990.

My question is whether the algorithm fisher.test() in S-plus is wrong, or
am I missing an important point?

Hin

---------------------------------------------------------------------------
L.Y. Hin
Dept. of Obstetrics and Gynaecology
Prince of Wales Hospital
Hong Kong
Tel.(852)26322807
Fax.(852)26360008
----------------------------------------------------------------------------

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news