Programming the statistical procedures from SAS

Kappa coefficient

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Kappa coefficient

Hi,

 

I calculated the Kappa coefficient using the following command:

 

proc freq data = gabarit_final;

tables manager_A_initial_decision * manager_B_initial_decision /norow nocol nopercent agree;

test kappa wtkap;

by reference_number metho;

run;

 

Could someone guide me on how to save the coefficient in a new dataset?

 

Thank you in advance,

 

Shawn

 


Accepted Solutions
Solution
2 weeks ago
SAS Employee
Posts: 227

Re: Kappa coefficient

Actually, you need to add this in your PROC FREQ step:

 

ods output kappa=mykappas;

If you just want the kappa values: 

ods output kappa=mykappas(where=(label1='Kappa') keep=label1 nvalue1);

View solution in original post


All Replies
Super User
Posts: 17,760

Re: Kappa coefficient

output out=want;
Super User
Posts: 17,760

Re: Kappa coefficient

My mistake, the TEST data does not get included in the OUTPUT data set.

 

Solution
2 weeks ago
SAS Employee
Posts: 227

Re: Kappa coefficient

Actually, you need to add this in your PROC FREQ step:

 

ods output kappa=mykappas;

If you just want the kappa values: 

ods output kappa=mykappas(where=(label1='Kappa') keep=label1 nvalue1);
☑ This topic is SOLVED.

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

Discussion stats
  • 3 replies
  • 128 views
  • 2 likes
  • 3 in conversation