Re: [R] Problem in performing goodness of fit test in R.

2010-02-14 Thread Ted Harding
probabilities > > data: freq > X-squared = 6.72, df = 5, p-value = 0.2423 > > thanks everyone, > Faiz. > > - Original Message - > From: "Ted Harding" > To: > Cc: "Faiz Rasool" > Sent: Sunday, February 14, 2010 2:02 PM > Subject: RE: [R] Pro

Re: [R] Problem in performing goodness of fit test in R.

2010-02-14 Thread Joshua Wiley
Dear Faiz, On Sat, Feb 13, 2010 at 11:42 PM, Faiz Rasool wrote: > The erorr I receive is "erorr in chisq.test(freq,p=prob)/6 probabilities > must sum to 1" This error message seems a little off. It looks like the entire chi squared test was divided by 6. Notice that the /6 occurs *after* the

Re: [R] Problem in performing goodness of fit test in R.

2010-02-14 Thread Ted Harding
On 14-Feb-10 07:42:12, Faiz Rasool wrote: > I am trying to perform goodness of fit test using R. I am using this > website > http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat013.html > for help. However, I am unable to carry out the test successfully. My > code follows. It is taken from the

Re: [R] Problem in performing goodness of fit test in R.

2010-02-14 Thread Bernardo Rangel Tura
On Sun, 2010-02-14 at 12:42 +0500, Faiz Rasool wrote: > I am trying to perform goodness of fit test using R. I am using this website > http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat013.html for help. > However, I am unable to carry out the test successfully. My code follows. It > is t

[R] Problem in performing goodness of fit test in R.

2010-02-13 Thread Faiz Rasool
I am trying to perform goodness of fit test using R. I am using this website http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat013.html for help. However, I am unable to carry out the test successfully. My code follows. It is taken from the website just mentioned. freq=c(22,21,22,27,22,3