Søren Højsgaard wrote:
> Using r2dtable() you can simulate general tables nxm with given margins. 
> Based on these you acn calculate a Monte Carlo p-value for a conditional test 
> for independence. 
>
> Regards
> Søren
>   
fisher.test(...., simulate.p.value=TRUE)  might be more direct. Also
works for chisq.test().

And, contrary to popular belief,  fisher.test() does work for larger
than2x2 tables, although you may run into space/time limitations.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])              FAX: (+45) 35327907

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to