[R] Re: p-value from chisq.test working strangely on 1.8.1

Federico Calboli f.calboli at ucl.ac.uk
Wed Dec 10 13:50:32 CET 2003


Mostly for the record, it happens also on Mandrake 9.1 with R 1.8.1
installed from rpm.



>chisq.test(matrix(c(0, 1, 1, 12556), 2, 2), simulate.p.value=TRUE)
 
       Pearson's Chi-squared test with simulated p-value (based on 2000
        replicates)
data:  matrix(c(0, 1, 1, 12556), 2, 2)
X-squared = 1e-04, df = NA, p-value = 5e-04

Federico Calboli

-- 



=================================

Federico C. F. Calboli

PLEASE NOTE NEW ADDRESS

Dipartimento di Biologia
Via Selmi 3
40126 Bologna
Italy

tel (+39) 051 209 4187
fax (+39) 051 251 208

f.calboli at ucl.ac.uk




More information about the R-help mailing list