Re: [R] chisq.,test`

From: Ted Harding <Ted.Harding_at_nessie.mcc.ac.uk>
Date: Fri 26 Aug 2005 - 18:55:38 EST


On 26-Aug-05 Stephen Choularton wrote:
> Hi
>
> I am trying to do this:
>
> chisq.test(c(11, 13, 12, 18, 21, 43, 15, 12, 9, 10, 5, 28, 22, 11, 15,
> [...]
> 7, 54, 34, 92, 27, 24, 19, 13, 16, 22, 18, 15, 19, 17, 31, 14, 32),
> p=c(0.0016, 0.002752, 0.001728, 0.0016, 0.001792, 0.005953, 0.006081,
> [...]
> 0.001664, 0.002304))
>
> but I keep on getting ‘syntax error’. Is this to long, or somehow
> badly formed?

Having cut&pasted your data as published in your email into R-1.8.0 on Red Hat Linux 9, I encountered no "syntax error" and got the result:

  data: c(11, 13, 12, 18, 21, 43, 15, 12, 9, 10, 5, 28, 22, 11, 15,   [...]

  X-squared = 1094.448, df = 414, p-value = < 2.2e-16

Fee: For each P-value of the form "x.ye-N", N beers.

Hoping this helps ... though your "syntax error" remains mysterious.

Best wishes,
Ted.



E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 26-Aug-05                                       Time: 09:53:38
------------------------------ XFMail ------------------------------

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 26 19:59:23 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:58:24 EST