BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AnalytX
Fluorite | Level 6

Hello,

I use McNemar test via PROC FREQ to analyse 2 x 2 contingency tables with matched pairs of subject. What statistical test should I use (and corresponding PROC) to analyze 2 x n contingency tables with matched pairs of subject.

Thanks in advance for you suggestions;

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

I may be a little unclear on this, but I would try using a generalized linear model that captured the pairing design.  Perhaps something like:

proc glimmix;

class group pair;

model nlevel = group / solution dist=multinomial;

random int / subject=pair;

run;

Without knowing exactly what the data look like, this is as close as I can come up with for paired multinomial data.

Steve Denham

View solution in original post

2 REPLIES 2
SteveDenham
Jade | Level 19

I may be a little unclear on this, but I would try using a generalized linear model that captured the pairing design.  Perhaps something like:

proc glimmix;

class group pair;

model nlevel = group / solution dist=multinomial;

random int / subject=pair;

run;

Without knowing exactly what the data look like, this is as close as I can come up with for paired multinomial data.

Steve Denham

AnalytX
Fluorite | Level 6

Dear Steve,

Thanks a lot for your answer which sounds very good.

I have performed some tests and I obtained the results I waited for.

Have a good day.

Regards

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2694 views
  • 0 likes
  • 2 in conversation