SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
darb
Calcite | Level 5

So currently I am assessing agreement between two evaluators. They are assessing disease response and the table would like below:

 

                   Evaluater 2  CR     CRc      CRi        PR        SD       PD

Evaluater 1

CR

CRc

CRi

PR

SD

PD

 

To calculate a weighted Kappa is assigned an Ordinal value to each response: 1, 2, 3, 4, 5, 6. Which sas that uses the following weights as default: 1.00, 0.8, 0.6, 0.4, 0.2.

 

However, I would really like for CRc and CRi to have the same weights for distance from CR. Does anyone know how I should reorder the ordinal values if even possible, my issue is that they can't have the same ordinal value --- is the only way to combine CRc & CRi? I don't know if that would be clinically meaningful.

2 REPLIES 2
ballardw
Super User

What are you basing this statement on: "Which sas that uses the following weights as default: 1.00, 0.8, 0.6, 0.4, 0.2."

 

What does your current data actually look like is it something like:

Evaluator Value RecordID

 

There are a number of procedures that will do Kappa coefficients or analysis but we kind of need to know what the raw data looks like to make recommendations.

darb
Calcite | Level 5

I can print the weights Sas is using:

 

ods html;
proc freq data = test5 ;
table xrorres1*bestresp1/agree printkwts ;
test kappa;
weight count;
run;
ods html close;

 

Data looks like this:

 

xrorres1    bestresp1         count

CR                CR                   5

CR                CRi                  3

CR                CRc                 2

CR                PR                   0 

CR                SD                   0

CRi               PD                   0

etc                 etc                   etc

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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