P-Value for McNemar's Test

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

P-Value for McNemar's Test

Hi,

 

I have calculated the McNemar's Chi-Square (ChiSq variable) for my data, however when I calculate the associated P-value using formula : p= 1 - cdf('CHISQUARE',ChiSq,1) the value seems to be off ( about half lower) from the other statistical packages.

 

Thank you for your help.

 


Accepted Solutions
Solution
‎05-20-2016 07:39 PM
Respected Advisor
Posts: 4,919

Re: P-Value for McNemar's Test

Posted in reply to Learner25

McNemar's test is available (asymptotic and exact versions) in proc freq when you specify option AGREE.

PG

View solution in original post


All Replies
Solution
‎05-20-2016 07:39 PM
Respected Advisor
Posts: 4,919

Re: P-Value for McNemar's Test

Posted in reply to Learner25

McNemar's test is available (asymptotic and exact versions) in proc freq when you specify option AGREE.

PG
Occasional Contributor
Posts: 17

Re: P-Value for McNemar's Test

Thank you!

 

Can I just use a P - value formula though?

 

Thank you.

Occasional Contributor
Posts: 17

Re: P-Value for McNemar's Test

Just checked - Proc freq works fine, the result is the same as my formula for p value though. Thank you for your help.
Super User
Posts: 11,343

Re: P-Value for McNemar's Test

Posted in reply to Learner25

Learner25 wrote:

Hi,

 

I have calculated the McNemar's Chi-Square (ChiSq variable) for my data, however when I calculate the associated P-value using formula : p= 1 - cdf('CHISQUARE',ChiSq,1) the value seems to be off ( about half lower) from the other statistical packages.

 

Thank you for your help.

 


Consider whether SAS is doing a TWO tail test and your other package or you are calculating for a one-sided test.

Occasional Contributor
Posts: 17

Re: P-Value for McNemar's Test

Thank you. The other test uses binomial distribution.  

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 424 views
  • 1 like
  • 3 in conversation