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: [EMAIL PROTECTED] http://www.are.berkeley.edu/jobmarket/fang.html ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel