Hello,
You are computing the lower tail value, for chi-squared tests it's
probably the upper tail you want.
p.val1 <- 1 - pchisq(Stat, df)
p.val2 <- pchisq(Stat, df, lower.tail=FALSE)
p.val1 == p.val2
Hope this helps,
Rui Barradas
Em 06-06-2012 02:31, Manish Gupta escreveu:
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide
http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.