BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
PSIOT2
Calcite | Level 5

Dear all,

I would like to compare two kappas using proc freq but no kappa and p-value are displayed with no mentioning error in the log.

The goal is to compare two kappa calculated for two different way to read a scan. We ask to 4 different readers to localize a lesion with te two modalities.

Please find my code:


proc freq data=allMalignantCases;
table arm_id*reader*location / agree ;
test kappa;
run;

 

Only tables of distribution are displayed.

 

Thank you 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Also check sas built-in macro %MAGREE .
There are Kappa statistics you need in it.
https://support.sas.com/kb/25/006.html

View solution in original post

4 REPLIES 4
PSIOT2
Calcite | Level 5

To be complete with my previous message, there are 5 possible locations, 4 readers and two modalities of reading.

Rick_SAS
SAS Super FREQ

What are the dimensions of the tables? The documentation for the KAPPA statistic states:
"Kappa coefficients are defined only for square tables, where the number of rows equals the number of columns. PROC FREQ does not compute kappa coefficients for tables that are not square"
See SAS Help Center: TEST Statement'

 

Ksharp
Super User

Also check sas built-in macro %MAGREE .
There are Kappa statistics you need in it.
https://support.sas.com/kb/25/006.html

PSIOT2
Calcite | Level 5
Thank you all, indeed my matrix is not squared and cmh2 works.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 4 replies
  • 1373 views
  • 3 likes
  • 3 in conversation