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

From: Philip Twumasi-Ankrah <nana_kwadwo_derkyi_at_yahoo.com>
Date: Wed, 25 Jun 2008 04:50:05 -0700 (PDT)


I think not considering the zero cells compromises the estimates you derive from you analysis. For instance, what will be the value of N used in the MLE estimation?

You can ZIP - Zero Inflated Poisson which should provide you with the means to account for the zeros. R has funstions to do that. Form the top of my head, I can remember "zicount".

Ciao!

A Smile costs Nothing 
     But Rewards Everything

Happiness is not perfected until it is shared                                                               -Jane Porter  

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



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.
      
	[[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. Received on Wed 25 Jun 2008 - 11:53:16 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 Wed 25 Jun 2008 - 13:31:41 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