Message-ID: <Pine.LNX.4.51.0402180827590.25051@artemis.imbe.med.uni-erlangen.de>
Date: 2004-02-18T07:30:47Z
From: Torsten Hothorn
Subject: Generating 2x2 contingency tables
In-Reply-To: <002b01c3f561$ac90a7e0$0d00a8c0@okasha>
On Tue, 17 Feb 2004, Mahmoud K. Okasha wrote:
> Hello R-users,
>
> I would like to generate two-way contingency tables with zero in one cell. I tried to use the function r2dtable but I could not force one cell to have zero value.
>
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
> Any Idea?
>
> Best regards..
> Mahmoud
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>