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

From: David Duffy <David.Duffy_at_qimr.edu.au>
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 <- as.data.frame(table(x,y))

then use the exactLoglinTest package's mcexact function

David Duffy.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive