From laifang1 at yahoo.com  Sun Oct 31 08:49:45 2004
From: laifang1 at yahoo.com (fang lai)
Date: Sun Oct 31 08:49:53 2004
Subject: [Rd] another question about fisher.test
Message-ID: <20041031074945.27751.qmail@web50405.mail.yahoo.com>

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,

Fang

 

=====
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
http://www.are.berkeley.edu/jobmarket/fang.html


[Rd] another question about fisher.test
fang lai