Re: [R] goodfit() in vcd package: computation of chi-squared

2009-07-24 Thread Achim Zeileis
On Thu, 23 Jul 2009, boris.vasil...@forces.gc.ca wrote: I have troubles understanding how goodfit() function in the vcd package computes the Pearson coefficient. That's because it's conceptually hard to compute. The problem with the minimum Chi-squared approach is that for the asymptotics to

[R] goodfit() in vcd package: computation of chi-squared

2009-07-23 Thread Boris.Vasiliev
I have troubles understanding how goodfit() function in the vcd package computes the Pearson coefficient. Can anybody provide more information on the computation? In particular, for HorseKicks data in vcd package, goodfit() yields > oo <- goodfit(HorseKicks,type="poisson",method="MinChisq") > s