[R] chisq.test error: x and y must have at least 2 levels

Christoph Bier christoph.bier at web.de
Fri Nov 7 16:48:48 CET 2003

Spencer Graves wrote:

> As Peter said, the standard chi-square for a 2x2 table won't work for 
> your data.  However, if you tabulate the numbers first and then ask for 
> the chi-square, you get a warning, not an error:

Thanks for the solution of my problem!

Best regards,


More information about the R-help mailing list