{"id":4741,"date":"2015-08-10T08:56:26","date_gmt":"2015-08-10T13:56:26","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=4741"},"modified":"2015-08-10T08:57:05","modified_gmt":"2015-08-10T13:57:05","slug":"plotting-agreement","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/plotting-agreement\/","title":{"rendered":"Plotting Agreement with Kappa Plots from PROC FREQ"},"content":{"rendered":"<p>In assessing whether our Fish Lake game really works to teach fractions, we collect a lot of data, including a pretest and a post-test. We also use a lot of types of items, including a couple of essay questions. Being reasonable people, we are interested in the extent to which the ratings on these items agree.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/lake_fish_fourths.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4743\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/lake_fish_fourths.png\" alt=\"Lake with fish, divided into quarters\" width=\"401\" height=\"286\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/lake_fish_fourths.png 401w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/lake_fish_fourths-300x214.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/a><\/p>\n<p>To measure agreement between two raters, we use Kappa\u2019s coefficient. PROC FREQ produces two types of Kappa coefficients. The Kappa coefficient ranges from -1 to 1, with 1 indicating perfect agreement, 1 indicating exactly the agreement that would be expected by chance and negative numbers indicating less agreement than would be expected by chance . When there are only two categories, PROC FREQ produces only the Kappa coefficient. When more than two categories are rated, a weighted Kappa is also produced which credits categories closer together as partial agreement and categories at the extreme ends as no agreement.<\/p>\n<p>The code is really simple:<\/p>\n<p><code>ODS GRAPHICS ON;<br \/>\nPROC FREQ DATA =datasetname ;<br \/>\nTABLES variable1*variable2 \/ PLOTS = KAPPAPLOT;<br \/>\nTEST AGREE ;<\/code><\/p>\n<p>Including the ODS GRAPHICS ON statement and the PLOTS = KAPPAPLOT option in your TABLES statement will give you a plot of both the agreement and distribution of ratings. Personally, I find the kappa plots, like the example below, to be pretty helpful.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/kappaplor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4742\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/kappaplor.png\" alt=\"Kappa plot\" width=\"450\" height=\"405\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/kappaplor.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/08\/kappaplor-300x270.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>This visual representation of the agreement shows that there was a large amount of exact agreement (dark blue shading) for incorrect answers, scored 0, with a small percentage partial agreement and very few with no agreement. With 3 categories, only exact agreement or partial agreement is possible for the middle category. Two other take-away points from this plot are that agreement is lower for correct and partially correct answers than incorrect ones and that the distribution is skewed, with a large proportion of answers scored incorrect. Because it is adjusted for chance agreement, Kappa is affected by the distribution among categories . If each rater scores 90% of the answers correct, there should be 81% agreement by chance, thus requiring an extremely high level of agreement to be significantly different from chance. The Kappa plot shows agreement and distribution simultaneously, which is why I like it.<\/p>\n<p><strong>&#8212;&#8212;&#8212;<\/strong><\/p>\n<p>Want to play the game ? <a href=\"http:\/\/www.7generationgames.com\/buy\/\">You can download it here, as well as our game for younger players, Spirit Lake. <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In assessing whether our Fish Lake game really works to teach fractions, we collect a lot of data, including a pretest and a post-test. We also use a lot of types of items, including a couple of essay questions. Being reasonable people, we are interested in the extent to which the ratings on these items&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,11,8],"tags":[],"class_list":["post-4741","post","type-post","status-publish","format-standard","hentry","category-software","category-statistics","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=4741"}],"version-history":[{"count":2,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4741\/revisions"}],"predecessor-version":[{"id":4745,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4741\/revisions\/4745"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=4741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=4741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=4741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}