{"id":206,"date":"2023-01-13T22:01:32","date_gmt":"2023-01-13T13:01:32","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/how-to-compare-roc-curves-in-ezr\/"},"modified":"2024-09-02T07:42:23","modified_gmt":"2024-09-01T22:42:23","slug":"how-to-compare-roc-curves-in-ezr","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/how-to-compare-roc-curves-in-ezr\/","title":{"rendered":"EZR \u3067 ROC \u66f2\u7dda\u306e\u7fa4\u9593\u6bd4\u8f03\u3092\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>EZR \u3067 ROC \u66f2\u7dda\u3092\u7fa4\u9593\u6bd4\u8f03\u3059\u308b\u65b9\u6cd5<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ROC-\u66f2\u7dda\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\">ROC \u66f2\u7dda\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf<\/h2>\n\n\n\n<p>R \u306e pROC \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u308b aSAH \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3046<\/p>\n\n\n\n<p>outcome \u30c7\u30fc\u30bf\u3067 s100b \u3068\u3044\u3046\u691c\u67fb\u5024\u306e\u30ab\u30c3\u30c8\u30aa\u30d5\u5024\u3092\u6c42\u3081\u308b<\/p>\n\n\n\n<p>gender \u3067 female \u3068 male \u306e\u7fa4\u9593\u6bd4\u8f03\u3092\u884c\u3046<\/p>\n\n\n\n<p>pROC \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u547c\u3073\u51fa\u3057\u3001aSAH \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6e96\u5099\u3092\u3059\u308b<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u4f7f\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f EZR<\/p>\n\n\n\n<p>pROC \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u547c\u3073\u51fa\u3057\u306f library() \u3092 R \u30b9\u30af\u30ea\u30d7\u30c8\u7a93\u306b\u66f8\u3044\u3066\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"synPreProc\">library<\/span><span class=\"synSpecial\">(<\/span>pROC<span class=\"synSpecial\">)<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u30e1\u30cb\u30e5\u30fc\u304b\u3089 aSAH \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u547c\u3073\u51fa\u3059<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"518\" height=\"323\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214338.png\" alt=\"\" class=\"wp-image-1229\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214338.png 518w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214338-300x187.png 300w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e outcome, gender, s100b \u3092\u7528\u3044\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"477\" height=\"629\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214408.png\" alt=\"\" class=\"wp-image-1230\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214408.png 477w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214408-228x300.png 228w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ROC-\u66f2\u7dda\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b-ROC-\u66f2\u7dda\u5206\u6790\u3092\u7fa4\u5225\u306b\u884c\u3046\">ROC \u66f2\u7dda\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b ROC \u66f2\u7dda\u5206\u6790\u3092\u7fa4\u5225\u306b\u884c\u3046<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e ROC \u66f2\u7dda\u5206\u6790\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u9078\u629e\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"626\" height=\"323\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214604.png\" alt=\"\" class=\"wp-image-1232\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214604.png 626w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214604-300x155.png 300w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u7d50\u679c\u306b outcome \u3092\u9078\u629e\u3057\u3001\u4e88\u6e2c\u306b\u7528\u3044\u308b\u5024\u3068\u3057\u3066 s100b \u3092\u9078\u629e\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"710\" height=\"567\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214909.png\" alt=\"\" class=\"wp-image-1233\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214909.png 710w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113214909-300x240.png 300w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>gender == &#8216;Female&#8217; \u3092\u8a2d\u5b9a\u3057\u3066 OK \u3092\u30af\u30ea\u30c3\u30af<\/p>\n\n\n\n<p>\u5973\u6027\u30b0\u30eb\u30fc\u30d7\u306e ROC \u66f2\u7dda\u304c\u66f8\u304b\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"672\" height=\"672\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215028.png\" alt=\"\" class=\"wp-image-1234\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215028.png 672w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215028-300x300.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215028-150x150.png 150w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u3053\u3053\u304c\u91cd\u8981\u3060\u304c\u3001R \u30b9\u30af\u30ea\u30d7\u30c8\u7a93\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3001ROC \u3068\u3044\u3046\u89e3\u6790\u7d50\u679c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u9055\u3046\u540d\u524d\uff08 roc1 \uff09\u3092\u4ed8\u3051\u3066\u304a\u304f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roc1 <span class=\"synStatement\">&lt;-<\/span> ROC\n<\/code><\/pre>\n\n\n\n<p>\u5148\u307b\u3069\u306e\u9ec4\u8272\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u3092 gender == &#8216;Male&#8217; \u306b\u5909\u66f4\u3057\u3066\u518d\u5ea6\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<p>\u7537\u6027\u30b0\u30eb\u30fc\u30d7\u306e ROC \u66f2\u7dda\u304c\u66f8\u304b\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"672\" height=\"672\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215303.png\" alt=\"\" class=\"wp-image-1235\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215303.png 672w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215303-300x300.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215303-150x150.png 150w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u4eca\u5ea6\u306f\u3001roc2 \u3068\u3044\u3046\u540d\u524d\u3092\u4ed8\u3051\u3066\u304a\u304f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roc2 <span class=\"synStatement\">&lt;-<\/span> ROC\n<\/code><\/pre>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001R \u30b9\u30af\u30ea\u30d7\u30c8\u7a93\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"synIdentifier\">roc.test<\/span><span class=\"synSpecial\">(<\/span>roc1<span class=\"synSpecial\">,<\/span> roc2<span class=\"synSpecial\">)<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b \u5973\u6027\u3068\u7537\u6027\u306e ROC \u66f2\u7dda\u304c\u7d71\u8a08\u5b66\u7684\u306b\u7570\u306a\u308b\u304b\u3069\u3046\u304b\u306e\u691c\u5b9a\u3092\u3057\u3066\u304f\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"693\" height=\"222\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215547.png\" alt=\"\" class=\"wp-image-1236\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215547.png 693w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230113215547-300x96.png 300w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u3053\u306e\u7d50\u679c\u3067\u306f\u3001\u7d71\u8a08\u5b66\u7684\u6709\u610f\u306b\u7570\u306a\u308b\u3068\u306f\u8a00\u3048\u306a\u3044\u3068\u3044\u3046\u7d50\u679c\u3067\u3042\u3063\u305f<\/p>\n\n\n\n<div id=\"biost-3565031346\" class=\"biost- biost-entity-placement\"><p style=\"text-align: center;\"><span style=\"font-size: 20px;\"><strong><a href=\"https:\/\/best-biostatistics.com\/kmhl\">\uff1e\uff1e\u3082\u3046\u7d71\u8a08\u3067\u60a9\u3080\u306e\u306f\u7d42\u308f\u308a\u306b\u3057\u307e\u305b\u3093\u304b\uff1f\u00a0<\/a><\/strong><\/span><\/p>\r\n<a href=\"https:\/\/best-biostatistics.com\/kmhl\"><img class=\"aligncenter wp-image-2794 size-full\" src=\"https:\/\/best-biostatistics.com\/wp\/wp-content\/uploads\/2023\/11\/bn_r_03.png\" alt=\"\" width=\"500\" height=\"327\" \/><\/a>\r\n<p style=\"text-align: center;\"><span style=\"color: #ff0000; font-size: 20px;\"><strong><span class=\"marker2\">\u21911\u4e07\u4eba\u4ee5\u4e0a\u306e\u533b\u7642\u5f93\u4e8b\u8005\u304c\u8cfc\u8aad\u4e2d<\/span><\/strong><\/span><\/p><\/div><h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>ROC \u66f2\u7dda\u3092 EZR \u3067\u7fa4\u9593\u6bd4\u8f03\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u305f<\/p>\n\n\n\n<p>\u7fa4\u5225\u306b 2 \u56de\u89e3\u6790\u3057\u3066\u3001\u5c11\u3057\u3060\u3051\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304c\u3061\u3087\u3063\u3068\u3060\u3051\u30cd\u30c3\u30af\u3060\u304c\u3001\u53ef\u80fd\u3067\u306f\u3042\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u304a\u3059\u3059\u3081\u66f8\u7c4d\">\u304a\u3059\u3059\u3081\u66f8\u7c4d<\/h2>\n\n\n\n<p>EZR\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb<\/p>\n\n\n\n<div class=\"hatena-asin-detail\"><a href=\"https:\/\/www.amazon.co.jp\/dp\/449810918X?tag=ttyotani-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" class=\"hatena-asin-detail-image-link\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51ouXcnW2-L._SL500_.jpg\" class=\"hatena-asin-detail-image\" alt=\"EZR\u3067\u3084\u3055\u3057\u304f\u5b66\u3076\u7d71\u8a08\u5b66 \u6539\u8a023\u7248 \u301cEBM\u306e\u5b9f\u8df5\u304b\u3089\u81e8\u5e8a\u7814\u7a76\u307e\u3067\u301c\" title=\"EZR\u3067\u3084\u3055\u3057\u304f\u5b66\u3076\u7d71\u8a08\u5b66 \u6539\u8a023\u7248 \u301cEBM\u306e\u5b9f\u8df5\u304b\u3089\u81e8\u5e8a\u7814\u7a76\u307e\u3067\u301c\"><\/a>\n<div class=\"hatena-asin-detail-info\">\n<p class=\"hatena-asin-detail-title\"><a href=\"https:\/\/www.amazon.co.jp\/dp\/449810918X?tag=ttyotani-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" target=\"_blank\" rel=\"noopener\">EZR\u3067\u3084\u3055\u3057\u304f\u5b66\u3076\u7d71\u8a08\u5b66 \u6539\u8a023\u7248 \u301cEBM\u306e\u5b9f\u8df5\u304b\u3089\u81e8\u5e8a\u7814\u7a76\u307e\u3067\u301c<\/a><\/p>\n<ul class=\"hatena-asin-detail-meta\">\n<li><span class=\"hatena-asin-detail-label\">\u4f5c\u8005:<\/span><a href=\"https:\/\/d.hatena.ne.jp\/keyword\/%BF%C0%C5%C4%20%C1%B1%BF%AD\" class=\"keyword\">\u795e\u7530 \u5584\u4f38<\/a><\/li>\n<li>\u4e2d\u5916\u533b\u5b66\u793e<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.amazon.co.jp\/dp\/449810918X?tag=ttyotani-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" class=\"asin-detail-buy\" target=\"_blank\" rel=\"noopener\">Amazon<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>EZR \u3067 ROC \u66f2\u7dda\u3092\u7fa4\u9593\u6bd4\u8f03\u3059\u308b\u65b9\u6cd5<\/p>\n","protected":false},"author":2,"featured_media":1237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,10],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ezr","category-roc"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/2024-09-02_074118.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":2,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":1239,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/206\/revisions\/1239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media\/1237"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}