search for: minchisq

Displaying 6 results from an estimated 6 matches for "minchisq".

Did you mean: dnchisq
2008 Feb 10
1
Error while using fitdistr() function or goodfit() function
...or. Changing the estimation method to ML worked. @List: Can anyone else verify the error I got? I literally ran the following two lines interactively from the example for goodfit: dummy <- rnbinom(200, size = 1.5, prob = 0.8) gf <- goodfit(dummy, type = "nbinomial", method = "MinChisq") and got back Warning messages: 1: In pnbinom(q, size, prob, lower.tail, log.p) : NaNs produced 2: In pnbinom(q, size, prob, lower.tail, log.p) : NaNs produced Again, I hope this helps. Sincerely, Jason Q. McClintic Aswad Gurjar wrote: > Hello, > > Thanks for help.But I am fa...
2009 Jul 23
1
goodfit() in vcd package: computation of chi-squared
...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") > summary(oo) Goodness-of-fit test for poisson distribution X^2 df P(> X^2) Pearson 0.594649 3 0.8976563 Warning message: In summary.goodfit(oo) : Chi-squared approximation may be incorrect However, if I compute the Pearson coefficient by hand, I get a differ...
2011 Aug 28
1
How to add a legend to a goodness-of-fit plot (vcd:goodfit)?
Hello, Sample code: library("vcd") dummy <- rnbinom(200, size=1.5, prob=0.8) gf <- goodfit(dummy, type="nbinomial", method="MinChisq") plot(gf) I would like to: 1. add a lgened stating the bars show the actual counts and the red dots - the fit. 2. show the goodness-of-fit values calculated somewhere on an empty white space ob the plot. But... the legend command does not work. Any help? Thanks, Dave
2010 Nov 12
1
goodness-of-fit test
...or normal. My first question is whether it is more appropriate to model my data according to a poisson distribution (if my test says it conforms) or use transformed data to normalise the data distribution? I have been using the vcd package gf<-goodfit(Y,type= "poisson",method= "MinChisq") but i get the following error message Warning message: In optimize(chi2, range(count)) : NA/Inf replaced by maximum positive value I then binned my count data to see if that might help V1 V2 1 5 34 2 10 30 3 15 10 4 20 8 5 25 7 6 30 0 7 35 3 8 40 2 9 45 3 10 50 1 11...
2010 Mar 16
2
How can I save the result for goodness of fit test
Dear All, I run the goodness of fit test using goodfit() in vcd package. The result is as follow: Goodness-of-fit test for poisson distribution X^2 df P(> X^2) Pearson 1.053348 2 0.5905661 Warning message: In summary.goodfit(gf) : Chi-squared approximation may be incorrect I want to save the the test statistics(X^2), df, and p-value. How can I save the result.
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
...or. Changing the estimation method to ML worked. @List: Can anyone else verify the error I got? I literally ran the following two lines interactively from the example for goodfit: dummy <- rnbinom(200, size = 1.5, prob = 0.8) gf <- goodfit(dummy, type = "nbinomial", method = "MinChisq") and got back Warning messages: 1: In pnbinom(q, size, prob, lower.tail, log.p) : NaNs produced 2: In pnbinom(q, size, prob, lower.tail, log.p) : NaNs produced Again, I hope this helps. Sincerely, Jason Q. McClintic Aswad Gurjar wrote: > Hello, > > Thanks for help.But I am fa...