[R] chi-square test

Roslina Zakaria zroslina at yahoo.com
Wed Apr 9 02:04:16 CEST 2008

Hi R-users,
I would like to find the goodness of fit using Chi-suare test for my data below:
xobs=observed data, xtwe=predicted data using tweedie, xgam=predicted data using gamma
> xobs <- c(223,46,12,5,7,17)
> xtwe <- c(217.33,39,14,18.33,6.67,14.67)
> xgam <- c(224.67,37.33,12.33,15.33,5.33,15)

> chisq.test(xobs, xtwe = xtwe, rescale.p = TRUE)
Error in chisq.test(xobs, xtwe = xtwe, rescale.p = TRUE) : 
  unused argument(s) (xtwe = c(217.33, 39, 14, 18.33, 6.67, 14.67))
chisq.test(x, p = p, rescale.p = TRUE)
I'm not sure what's wrong with it. 
Thank you so much for your help.

You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  

More information about the R-help mailing list