# How to calculate chi sqaure value from statistical value and degrees of freedom?

5 messages
Open this post in threaded view
|
Report Content as Inappropriate

## 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
Open this post in threaded view
|
Report Content as Inappropriate

## Re: How to calculate chi sqaure value from statistical value and degrees of freedom?

 Hi, Try pchisq(q,df) available at help(Chisquare) Ozgur
Open this post in threaded view
|
Report Content as Inappropriate

## Re: 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#csqPls help me out.
Open this post in threaded view
|
Report Content as Inappropriate

## Re: 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