Re: [R] How to solve empty cells in the contingency table?

From: David Duffy <>
Date: Fri, 27 Jun 2008 14:53:29 +1000 (EST)

> Hi,Dear all R experts,
> I am trying to do the 2-way contingency table analysis by fitting
> the loglinear models. However, I found my table has several empty
> cells which are theoretically missing values.I have no idea of how
> to solve them coz we cannot compute the simulated p-value with zero
> marginals.Does someone have some suggestions? Please help me out,
> thanks a lot!
> Cheers,
> Yan

One approach: if they are *structural zeroes*,

tab <-,y))

then use the exactLoglinTest package's mcexact function

David Duffy. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 27 Jun 2008 - 06:04:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 27 Jun 2008 - 06:30:48 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive