Skip to content

Generating 2x2 contingency tables

3 messages · Torsten Hothorn, Mahmoud K. Okasha

#
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
#
Hi again,
Thank you. I solved my problem by sampling from the multinomial
distribution..
Best regards ...

----- Original Message -----
From: "Torsten Hothorn" <Torsten.Hothorn at rzmail.uni-erlangen.de>
To: "Mahmoud K. Okasha" <m.okasha at palnet.com>
Cc: <r-help at stat.math.ethz.ch>
Sent: Wednesday, February 18, 2004 9:30 AM
Subject: Re: [R] Generating 2x2 contingency tables
cell. I tried to use the function r2dtable but I could not force one cell to
have zero value.
http://www.R-project.org/posting-guide.html