Hello,

Can you tell me what R function to use to do a two-sample chi-squared
test?  I want to see if two distributions are significantly different
from each other, and I don't specify the theoretical distribution of
either.  For example, I have the following fake count data:

x <- sample(1:10,50,replace=TRUE)
y <- sample(1:10,100,replace=TRUE)

I saw chisq.test in the stats package, but that looks like a
one-sample test.  I'm running version 2.7.2 on windows xp.  Thanks.

eric

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to