Manish Gupta
2012-Jun-05 09:38 UTC
[R] How to calculate chi sqaure value from statistical value and degrees of freedom?
Hi, How to calculate chi sqaure p value for given statistical value and degrees of freedom. Input : x = statistical value d = degrees of freedom output: p value = ? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-chi-sqaure-value-from-statistical-value-and-degrees-of-freedom-tp4632385.html Sent from the R help mailing list archive at Nabble.com.
Özgür Asar
2012-Jun-05 09:43 UTC
[R] How to calculate chi sqaure value from statistical value and degrees of freedom?
Hi, Try pchisq(q,df) available at help(Chisquare) 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-tp4632385p4632386.html Sent from the R help mailing list archive at Nabble.com.
Manish Gupta
2012-Jun-06 01:31 UTC
[R] How to calculate chi sqaure value from statistical value and degrees of freedom?
Hi, My input is chi square statistical value and degrees of freedom. But i m getting different p values with the above formula. I double checked my values with the below calculator. http://vassarstats.net/tabs.html#csq Pls help me out. -- View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-chi-sqaure-value-from-statistical-value-and-degrees-of-freedom-tp4632385p4632467.html Sent from the R help mailing list archive at Nabble.com.
Özgür Asar
2012-Jun-06 03:08 UTC
[R] How to calculate chi sqaure value from statistical value and degrees of freedom?
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.