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 _________________________________________________________________ ÐÂÄê»»ÐÂÑÕ£¬¿ìÀ´×±°ç×Ô¼ºµÄMSN¸øÐÄÒǵÄTAÒ»¸ö¾ªÏ²£¡ http://im.live.cn/emoticons/?ID=18 [[alternative HTML version deleted]]
Hi , yan I don't think that is a R specific problem. Treating missing value is not that trivial, it depends too much on your raw data and your essential problem. regards. On 2008-6-25, at ??2:14, ?? wrote:> > 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 > _________________________________________________________________ > ?????????????????? > ????????MSN????????TA?????????? > http://im.live.cn/emoticons/?ID=18 > [[alternative HTML version deleted]] > > ______________________________________________ > 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.-------------------------- Peng Jiang ?? Ph.D. Candidate Antai College of Economics & Management ???????? Department of Mathematics ??? Shanghai Jiaotong University (Minhang Campus) 800 Dongchuan Road 200240 Shanghai P. R. China
> > 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, > YanOne approach: if they are *structural zeroes*, tab <- as.data.frame(table(x,y)) then use the exactLoglinTest package's mcexact function David Duffy.
Maybe Matching Threads
- Analyzing three-way contingency tables with many zero cells
- mx2 contingency tables or (2^(m-1)-1)'s 2x2 contingency tables in the context of feature selection for random forest
- GLM Contingency table regressions
- Convert Contingency Table to Flat File
- Generating contingency tables from the null