Help using Base SAS procedures

Calculating overall weighted kappa

Reply
N/A
Posts: 1

Calculating overall weighted kappa

In a study where an individual was interviewed twice (time 1 and time2) by the same surveyor using a questionaire with 50 items, I calculated the weighted kappa for each of the 50 items. See below for the SAS procedure for one of the items. Now i want to calculate an overall weighted kappa for all of the 50 items. What would be the SAS procedure to calculate it? Thanks. vkehyaya

data original;
set Test_retest_1dec2012;
wgt=1;
run;

*Kappa Privacy;
data pseudo;
   infile datalines;
   wgt=.0000000001;
   input c1a_A c1a_B;
   datalines;
   0 0
   1 1
   2 2
   3 3
   4 4
   6 6
   7 7
   8 8
   ;
   run;
data both;
set original pseudo;
run;

ods rtf;

proc freq data=both;
weight wgt;
tables c1a_A*c1a_B/agree;
test kappa wtkap;
run;

Ask a Question
Discussion stats
  • 0 replies
  • 131 views
  • 0 likes
  • 1 in conversation