[R] Fisher test

Ambrosini Alessandro klavan at tiscalinet.it
Thu May 30 14:59:42 CEST 2002

Hello! I started from two matrix. I made "margin.table" and so now I have
two vectors. I have to take the first elements of the two vectors, and the
sum of the remaining element of each vector.
I make a example.Suppose to have (1,3,5,7,9)
I want to take 1,2 that are the first elements of the vectors, and make
3+5+7+9=24 for the first vector and 6+8+0+1=15 for the second. At this point
I build a table in this way
   1  24
   2  15
For this table I use the Fisher exact test. After this I have to take the
second elements of the vectors, find the sum of the rest of the vectors,
build another table and make Fisher. I have to do it for all the elements of
the vectors. In this case I have to find 5 tables. The problem is that I
have vectors with 1000 elements.
I know that I have to use "for" to build the table.
I know also that everytime fisher.test gives me the reslut.
The question is: have I to see one by one all the 1000 results or is there a
way to  create for example  a table with all the p-values or all the
confidence intervals? At the end my object is to say for example that 700
tables rejected the null hypothesis and 300 no.
Plese help me.
Thank you

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list