Re: [R] goodness-of-fit test

2010-11-12 Thread Robert A LaBudde
Skew as they are, your data certainly don't look normal. Try lognormal. The chi-square test gives good results when all counts are 5 or more, hence the warning. At 12:25 AM 11/12/2010, Andrew Halford wrote: Hi All, I have a dataset consisting of abundance counts of a fish and I want to test

Re: [R] Goodness of fit test for count data

2010-02-22 Thread Moshe Olshansky
You can compute the conditional probability that your variable equals k given that it is non-zero. For example, if X has poisson distribution with parameter lambda then P(X=k/X!=0) = P(X=k)/(1-P(X=0)) = (exp(-lambda)/(1-exp(-lambda))*lambda^k/k! Now you can find lambda for which the sum of square

Re: [R] goodness of fit test

2008-10-01 Thread ctu
Hi Edna, You could use lapply or sapply to perform the multiple goodness of fit tests at the same time. Chunhao Quoting Edna Bell <[EMAIL PROTECTED]>: Dear R Gurus; Is there an automated process for goodness of fit tests, please? I know there is prop.test for one at a time, but I was wo