[R] How to calculate chi sqaure value from statistical value and degrees of freedom?
Özgür Asar
oasar at metu.edu.tr
Wed Jun 6 05:08:07 CEST 2012
Hi,
Actually, pchisq(q,df) calculates the cumulative distribution function by
default.
To calculate the p-value, you can use either
1-pchisq(q,df)
or
pchisq(q,df,lower.tail=FALSE)
PS: I checked, the p value yielded by R and the calculator for which you
give a link, for some "q" and "df" values, and these two are same.
Best
Ozgur
--
View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-chi-sqaure-value-from-statistical-value-and-degrees-of-freedom-tp4632385p4632470.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list