[R-sig-ME] Simulations in Fisher's Exact test

Ben Bolker bbolker @ending from gm@il@com
Sun Oct 28 17:18:44 CET 2018


  This is indeed the wrong list; r-help using r-project.org, or StackOverflow,
might be more appropriate.  I am guessing this is an assignment for a
class?  If so, it might be more useful to get clarification from your
instructor or teaching assistant (or a colleague in your class). The
help page for ?fisher.test says:

simulate.p.value: a logical indicating whether to compute p-values by
          Monte Carlo simulation, **in larger than 2 by 2 tables**.

Emphasis (**) added.  Since you're using a 2x2 table, I'm guessing that
simulate.p.value has no effect ...  R probably should warn you, but oh
well ..


On 2018-10-28 7:47 a.m., Adeela Munawar wrote:
> hi all,
> Probably I am posted in wrong mailing list. I am getting a problem in
> applying Fisher's exact test. I am applying Fisher's exact test as
> 
>  ntable<- array(data = c(3, 1, 8,11), dim = c(2,2))
> fisher.test(ntable)
> 
> now, I have to repeat the same 10000 times and have to report p-values.
> Using the arguments simulate.p.value in the command is producing the same
> results
> test<-fisher.test(ntable,workspace=20000,simulate.p.value=T,B=10000)
> 
> what changes I have to made in my model.
> 
> regards
> Adeela
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-mixed-models using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>



More information about the R-sig-mixed-models mailing list