04-26-2015 02:38 PM
I am planning on using the SAS mAGREE macro to calculate Kappa statistics for four raters and four categories. However, the mAGREE macro only accepts one variable for the rater identities and one variable for the ratings.
Ex. %mAGREE (data=<input dataset> items=<subject identifier variable> raters=<rater identifier variable> response=<ratings variable>)
In my data set, my raters' identities are represented by each of four variables' names and the ratings are the values for that variable. For example:
Observation Rater 1 Rater 2 Rater 3 Rater 4
1 1 1 2 2
2 3 2 2 3
3 4 2 3 4
4 2 1 3 2
So my question is, how do I set it up so that the ratings provided by each rater for each observation is included in one variable's values (or more simply, how do I collapse the ratings from each of the four raters into one response variable)? Thanks.
04-27-2015 03:41 PM
Hi, thanks for replying. Unfortunately, I tried using that macro and had trouble running it as well. I thought the macro provided by SAS may have been easier...
04-27-2015 04:28 PM
Here is one more paper you might want to look at: http://analytics.ncsu.edu/sesug/2012/PO-05.pdf
They show a data layout, and macros, for calculating a Kappa for 4 raters with each subject having a number of observations.