[Rd] another question about fisher.test

From: fang lai <laifang1_at_yahoo.com>
Date: Sun 31 Oct 2004 - 18:49:45 EST

Dear all,
 I have another question about fisher.test: Is there any way to save the resulting p-value in a matrix or file after a loop as below?
 for (i in 1:42) {
# testing difference in income(pinc) between people in
# (with in1=1) and out (with in1=0) of the program for
# group i

fisher.test(m$pinc[m$group==i], m$in1[m$group==i], workspace=40000000, hybrid=F)}

 When I run this loop, there is no results shown on the terminal. I wonder if there is a way to store the result for each i in a file or matrix.
Many thanks,


Lai, Fang

PhD candidate
University of California, Berkeley
Department of Agricultural and Resource Economics 314 Giannini Hall, Berkeley, CA 94720-3310

tel: (510) 643 - 5421(O)
     (510) 847 - 9811(Cell)
fax: (510) 643 - 8911

email: lai@are.berkeley.edu

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Oct 31 19:02:29 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:26 EST