Hola!
simulate.p.value=TRUE uset the patefielf algorithm (translated to C).
The reference is
Patefield,W. M. (1981) An efficient method of generating r * c tables
with given row and column totals (algorithm AS 159). A?pplied Statistics
30, 91-97.
This reference should have been included in the help file!
As to small sample properties, I know of no references, but to do a
small-scall simulation in R should be fast.
Kjetil Halvorsen
Klaus Abberger wrote:>
> Dear all,
>
> I have a question about the chisq.test command. As an option one can
> chose the computation of p-values by Monte-Carlo simulation
> (simulate.p.value=T). Is there any documentation available how this
> calculations are done and how this simulation based test behaves in
> small samples?
>
> Thanks
>
> Klaus Abberger
>
> University of Konstanz, Germany
>
> [[alternate HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help