## P-Value for McNemar's Test

Solved
Occasional Contributor
Posts: 17

# 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.

Accepted Solutions
Solution
‎05-20-2016 07:39 PM
Posts: 5,542

## Re: P-Value for McNemar's Test

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

PG

All Replies
Solution
‎05-20-2016 07:39 PM
Posts: 5,542

## Re: P-Value for McNemar's Test

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: 13,583

## Re: P-Value for McNemar's Test

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.

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 and locked.