Skip to content
Prev 44425 / 398506 Next

Generating 2x2 contingency tables

On Tue, 17 Feb 2004, Mahmoud K. Okasha wrote:

            
r2dtable samples from the conditional distribution of the table given the
margins. And with margins fixed AND one cell fixed (to zero) the
conditional distribution just puts mass one at the observed table.

You may want to sample from a multinomial distribution with one
of the parameters fixed to zero.

Best,

Torsten