[R] Chi-squared test

Bianca Vieru- Dimulescu bianca.vieru at free.fr
Thu Nov 24 12:13:24 CET 2005


Hello,

I'm trying to calculate a chi-squared test to see if my data are 
different from the theoretical distribution or not:

chisq.test(rbind(c(79, 52, 69, 71, 82, 87, 95, 74, 55, 78, 49, 
60),c(80,80,80, 80, 80, 80, 80, 80, 80, 80, 80, 80)))

      Pearson's Chi-squared test

data:  rbind(c(79, 52, 69, 71, 82, 87, 95, 74, 55, 78, 49, 60), c(80, 
80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80))
X-squared = 17.6, df = 11, p-value = 0.09142

Is this correct? If I'm doing the same thing using Excel I obtained a 
different value of p.. (1.65778E-14)

Thanks a lot,
Bianca




More information about the R-help mailing list