{"id":1244,"date":"2023-07-27T03:54:17","date_gmt":"2023-07-27T03:54:17","guid":{"rendered":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/"},"modified":"2023-07-27T03:54:17","modified_gmt":"2023-07-27T03:54:17","slug":"r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3","status":"publish","type":"post","link":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/","title":{"rendered":"R\uc758 k-medoids: \ub2e8\uacc4\ubcc4 \uc608"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \ub370\uc774\ud130 \uc138\ud2b8 \ub0b4\uc5d0\uc11c <a href=\"https:\/\/statorials.org\/ko\/\u1110\u1169\u11bc\u1100\u1168\u110b\u1166\u1109\u1165\u110b\u1174-\u1100\u116a\u11ab\u110e\u1161\u11af\/\" target=\"_blank\" rel=\"noopener noreferrer\">\uad00\ucc30<\/a> \uadf8\ub8f9 \ub610\ub294 <em>\ud074\ub7ec\uc2a4\ud130\ub97c<\/em> \ucc3e\uc73c\ub824\uace0 \uc2dc\ub3c4\ud558\ub294 \uae30\uacc4 \ud559\uc2b5 \uae30\uc220\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ubaa9\ud45c\ub294 \uac01 \uad70\uc9d1 \ub0b4\uc758 \uad00\uce21\uac12\uc774 \uc11c\ub85c \ub9e4\uc6b0 \uc720\uc0ac\ud55c \ubc18\uba74, \ub2e4\ub978 \uad70\uc9d1\uc758 \uad00\uce21\uac12\uc740 \uc11c\ub85c \uc0c1\ub2f9\ud788 \ub2e4\ub978 \uad70\uc9d1\uc744 \ucc3e\ub294 \uac83\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 <a href=\"https:\/\/statorials.org\/ko\/\u110c\u1175\u1103\u1169-\u1112\u1161\u11a8\u1109\u1173\u11b8\u1100\u116a-\u1107\u1175\u110c\u1175\u1103\u1169-\u1112\u1161\u11a8\u1109\u1173\u11b8\/\" target=\"_blank\" rel=\"noopener noreferrer\">\ube44\uc9c0\ub3c4 \ud559\uc2b5<\/a> \uc758 \ud55c \ud615\ud0dc\uc785\ub2c8\ub2e4 <a href=\"https:\/\/statorials.org\/ko\/\u1107\u1167\u11ab\u1109\u116e-\u1109\u1165\u11af\u1106\u1167\u11bc-\u110b\u1173\u11bc\u1103\u1161\u11b8\/\" target=\"_blank\" rel=\"noopener noreferrer\">. \uc751\ub2f5 \ubcc0\uc218<\/a> \uc758 \uac12\uc744 \uc608\uce21\ud558\ub294 \uac83\uc774 \uc544\ub2c8\ub77c \ub2e8\uc21c\ud788 \ub370\uc774\ud130 \uc138\ud2b8 \ub0b4\uc5d0\uc11c \uad6c\uc870\ub97c \ucc3e\uc73c\ub824\uace0 \ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \uae30\uc5c5\uc774 \ub2e4\uc74c\uacfc \uac19\uc740 \uc815\ubcf4\uc5d0 \uc561\uc138\uc2a4\ud560 \uc218 \uc788\ub294 \uacbd\uc6b0 \ub9c8\ucf00\ud305\uc5d0 \uc790\uc8fc \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\uac00\uad6c \uc18c\ub4dd<\/span><\/li>\n<li> <span style=\"color: #000000;\">\uac00\uad6c \uaddc\ubaa8<\/span><\/li>\n<li> <span style=\"color: #000000;\">\uc138\ub300\uc8fc \uc9c1\uc5c5<\/span><\/li>\n<li> <span style=\"color: #000000;\">\uac00\uc7a5 \uac00\uae4c\uc6b4 \ub3c4\uc2dc \uc9c0\uc5ed\uae4c\uc9c0\uc758 \uac70\ub9ac<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\uc774 \uc815\ubcf4\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba74 \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc720\uc0ac\ud558\uace0 \ud2b9\uc815 \uc81c\ud488\uc744 \uad6c\ub9e4\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uac70\ub098 \ud2b9\uc815 \uc720\ud615\uc758 \uad11\uace0\uc5d0 \ub354 \uc798 \ubc18\uc751\ud560 \uc218 \uc788\ub294 \uac00\uad6c\ub97c \uc2dd\ubcc4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ud074\ub7ec\uc2a4\ud130\ub9c1\uc758 \uac00\uc7a5 \uc77c\ubc18\uc801\uc778 \ud615\ud0dc \uc911 \ud558\ub098\ub294 <a href=\"https:\/\/statorials.org\/ko\/k\u1102\u1173\u11ab-r\u1105\u1169-\u1100\u1173\u1105\u116e\u11b8\u1112\u116a\u1103\u116c\u11b7\u110b\u1173\u11af-\u110b\u1174\u1106\u1175\u1112\u1161\u11b8\u1102\u1175\u1103\u1161.\/\" target=\"_blank\" rel=\"noopener noreferrer\">k-\ud3c9\uade0 \ud074\ub7ec\uc2a4\ud130\ub9c1<\/a> \uc73c\ub85c \uc54c\ub824\uc838 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ubd88\ud589\ud558\uac8c\ub3c4 \uc774 \ubc29\ubc95\uc740 \uc774\uc0c1\uac12\uc758 \uc601\ud5a5\uc744 \ubc1b\uc744 \uc218 \uc788\uc73c\ubbc0\ub85c <strong>k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc774<\/strong> \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \ub300\uc548\uc785\ub2c8\ub2e4.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>K-Medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc774\ub780 \ubb34\uc5c7\uc785\ub2c8\uae4c?<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">K-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \ub370\uc774\ud130\uc138\ud2b8\uc758 \uac01 \uad00\uce21\uac12\uc744 <em>K<\/em> \ud074\ub7ec\uc2a4\ud130 \uc911 \ud558\ub098\uc5d0 \ubc30\uce58\ud558\ub294 \uae30\uc220\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ucd5c\uc885 \ubaa9\ud45c\ub294 \uac01 \ud074\ub7ec\uc2a4\ud130 \ub0b4\uc758 \uad00\uce21\uce58\uac00 \uc11c\ub85c \ub9e4\uc6b0 \uc720\uc0ac\ud55c \ubc18\uba74 \ub2e4\ub978 \ud074\ub7ec\uc2a4\ud130\uc758 \uad00\uce21\uce58\ub294 \uc11c\ub85c \uc0c1\ub2f9\ud788 \ub2e4\ub978 <em>K<\/em> \uac1c\uc758 \ud074\ub7ec\uc2a4\ud130\ub97c \uac16\ub294 \uac83\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc2e4\uc81c\ub85c K-\ud3c9\uade0 \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \ub2e8\uacc4\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1. <em>K<\/em> \uac12\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4.<\/strong><\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\uba3c\uc800, \ub370\uc774\ud130\uc5d0\uc11c \uc2dd\ubcc4\ud558\ub824\ub294 \ud074\ub7ec\uc2a4\ud130 \uc218\ub97c \uacb0\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. \uc885\uc885 \uc6b0\ub9ac\ub294 <em>K<\/em> \uc5d0 \ub300\ud574 \uc5ec\ub7ec \uac00\uc9c0 \ub2e4\ub978 \uac12\uc744 \ud14c\uc2a4\ud2b8\ud558\uace0 \uacb0\uacfc\ub97c \ubd84\uc11d\ud558\uc5ec \uc8fc\uc5b4\uc9c4 \ubb38\uc81c\uc5d0 \uac00\uc7a5 \uc801\ud569\ud55c \ud074\ub7ec\uc2a4\ud130 \uc218\ub97c \ud655\uc778\ud574\uc57c \ud569\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\"><strong>2. \uac01 \uad00\uce21\uce58\ub97c 1\ubd80\ud130 <em>K<\/em> \uae4c\uc9c0 \ucd08\uae30 \ud074\ub7ec\uc2a4\ud130\uc5d0 \ubb34\uc791\uc704\ub85c \ud560\ub2f9\ud569\ub2c8\ub2e4.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3. \ud074\ub7ec\uc2a4\ud130 \ud560\ub2f9 \ubcc0\uacbd\uc774 \uc911\uc9c0\ub420 \ub54c\uae4c\uc9c0 \ub2e4\uc74c \uc808\ucc28\ub97c \uc218\ud589\ud569\ub2c8\ub2e4.<\/strong><\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><em>K<\/em> \uac1c\uc758 \ud074\ub7ec\uc2a4\ud130 \uac01\uac01\uc5d0 \ub300\ud574 <em>\ud074\ub7ec\uc2a4\ud130\uc758 \ubb34\uac8c \uc911\uc2ec\uc744 \uacc4\uc0b0\ud569\ub2c8\ub2e4.<\/em> \uc774\ub294 <em>k<\/em> \ubc88\uc9f8 \ud074\ub7ec\uc2a4\ud130\uc758 \uad00\uce21\uac12\uc5d0 \ub300\ud55c \ud2b9\uc9d5\uc758 <em>p\uac1c\uc758<\/em> <b>\uc911\uc559\uac12<\/b> \uc73c\ub85c \uad6c\uc131\ub41c \ubca1\ud130\uc785\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\">\uc911\uc2ec\uc774 \uac00\uc7a5 \uac00\uae4c\uc6b4 \ud074\ub7ec\uc2a4\ud130\uc5d0 \uac01 \uad00\uce21\uce58\ub97c \ud560\ub2f9\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c <em>\uac00\uc7a5 \uac00\uae4c\uc6b4 \uac83\uc740<\/em> <a href=\"https:\/\/en.wikipedia.org\/wiki\/Euclidean_distance#Squared_Euclidean_distance\" target=\"_blank\" rel=\"noopener noreferrer\">\uc720\ud074\ub9ac\ub4dc \uac70\ub9ac\ub97c<\/a> \uc0ac\uc6a9\ud558\uc5ec \uc815\uc758\ub429\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<blockquote>\n<p> <span style=\"color: #000000;\"><strong>\uae30\uc220 \ub178\ud2b8:<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">k-medoids\ub294 \ud3c9\uade0\uc774 \uc544\ub2cc \uc911\uc559\uac12\uc744 \uc0ac\uc6a9\ud558\uc5ec \uad70\uc9d1 \uc911\uc2ec\uc744 \uacc4\uc0b0\ud558\ubbc0\ub85c k-\ud3c9\uade0\ubcf4\ub2e4 \uc774\uc0c1\uac12\uc5d0 \ub354 \uac15\ub825\ud55c \uacbd\ud5a5\uc774 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc2e4\uc81c\ub85c \ub370\uc774\ud130 \uc138\ud2b8\uc5d0 \uadf9\ub2e8\uc801\uc778 \uc774\uc0c1\uac12\uc774 \uc5c6\uc73c\uba74 k-\ud3c9\uade0\uacfc k-medoids\ub294 \uc720\uc0ac\ud55c \uacb0\uacfc\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/span><\/p>\n<\/blockquote>\n<h3> <span style=\"color: #000000;\"><strong>R\uc758 K-Medoids \ud074\ub7ec\uc2a4\ud130\ub9c1<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>1\ub2e8\uacc4: \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \ub85c\ub4dc<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\uba3c\uc800 R\uc758 k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc5d0 \ub300\ud55c \uba87 \uac00\uc9c0 \uc720\uc6a9\ud55c \uae30\ub2a5\uc774 \ud3ec\ud568\ub41c \ub450 \uac1c\uc758 \ud328\ud0a4\uc9c0\ub97c \ub85c\ub4dc\ud569\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\">library<\/span> (factoextra)\n<span style=\"color: #993300;\">library<\/span> (cluster)<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>2\ub2e8\uacc4: \ub370\uc774\ud130 \ub85c\ub4dc \ubc0f \uc900\ube44<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\uc774 \uc608\uc5d0\uc11c\ub294 R\uc5d0 \ub0b4\uc7a5\ub41c <em>USArrests<\/em> \ub370\uc774\ud130\uc138\ud2b8\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0\ub294 1973\ub144 \ubbf8\uad6d \uac01 \uc8fc\uc5d0\uc11c <em>\uc0b4\uc778<\/em> , <em>\ud3ed\ud589<\/em> , <em>\uac15\uac04<\/em> \uc73c\ub85c \uccb4\ud3ec\ub41c \uac74\uc218\uc640 \ub3c4\uc2dc\uc5d0 \uac70\uc8fc\ud558\ub294 \uac01 \uc8fc\uc758 \uc778\uad6c \ube44\uc728\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc9c0\uc5ed. , <em>\uc5b4\ubc18\ud31d<\/em> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 \ub2e4\uc74c \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><em>USArrests<\/em> \ub370\uc774\ud130 \uc138\ud2b8 \ub85c\ub4dc<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ub204\ub77d\ub41c \uac12\uc774 \uc788\ub294 \ubaa8\ub4e0 \ud589\uc744 \uc81c\uac70\ud569\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ud3c9\uade0\uc774 0\uc774\uace0 \ud45c\uc900\ud3b8\ucc28\uac00 1\uc774 \ub418\ub3c4\ub85d \ub370\uc774\ud130 \uc138\ud2b8\uc758 \uac01 \ubcc0\uc218\ub97c \uc870\uc815\ud569\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load data<\/span>\ndf &lt;-USArrests\n\n<span style=\"color: #008080;\">#remove rows with missing values<\/span><\/strong>\n<strong>df &lt;- na. <span style=\"color: #3366ff;\">omitted<\/span> (df)\n\n<span style=\"color: #008080;\">#scale each variable to have a mean of 0 and sd of 1<\/span><\/strong>\n<strong>df &lt;- scale(df)\n\n<span style=\"color: #008080;\">#view first six rows of dataset<\/span>\nhead(df)\n\n               Murder Assault UrbanPop Rape\nAlabama 1.24256408 0.7828393 -0.5209066 -0.003416473\nAlaska 0.50786248 1.1068225 -1.2117642 2.484202941\nArizona 0.07163341 1.4788032 0.9989801 1.042878388\nArkansas 0.23234938 0.2308680 -1.0735927 -0.184916602\nCalifornia 0.27826823 1.2628144 1.7589234 2.067820292\nColorado 0.02571456 0.3988593 0.8608085 1.864967207\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>3\ub2e8\uacc4: \ucd5c\uc801\uc758 \ud074\ub7ec\uc2a4\ud130 \uc218 \ucc3e\uae30<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">R\uc5d0\uc11c k-medoid \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub824\uba74 &#8220;\uc911\uc559\uac12\uc744 \uc911\uc2ec\uc73c\ub85c \ubd84\ud560&#8221;\uc744 \uc758\ubbf8\ud558\uace0 \ub2e4\uc74c \uad6c\ubb38\uc744 \uc0ac\uc6a9\ud558\ub294 <strong>pam()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>pam(data, k, \uba54\ud2b8\ub9ad = &#8220;\uc720\ud074\ub9ac\ub4dc&#8221;, \uc2a4\ud0e0\ub4dc = FALSE)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\uae08:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>\ub370\uc774\ud130:<\/strong> \ub370\uc774\ud130 \uc138\ud2b8\uc758 \uc774\ub984\uc785\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>k:<\/strong> \ud074\ub7ec\uc2a4\ud130 \uc218\uc785\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>\ubbf8\ud130\ubc95:<\/strong> \uac70\ub9ac\ub97c \uacc4\uc0b0\ud558\ub294 \ub370 \uc0ac\uc6a9\ud560 \ubbf8\ud130\ubc95\uc785\ub2c8\ub2e4. \uae30\ubcf8\uac12\uc740 <em>Euclidean<\/em> \uc774\uc9c0\ub9cc <em>manhattan \uc744<\/em> \uc9c0\uc815\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>\uc2a4\ud0e0\ub4dc:<\/strong> \ub370\uc774\ud130 \uc138\ud2b8\uc758 \uac01 \ubcc0\uc218\ub97c \uc815\uaddc\ud654\ud560\uc9c0 \uc5ec\ubd80\uc785\ub2c8\ub2e4. \uae30\ubcf8\uac12\uc740 false\uc785\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\ucd5c\uc801\uc758 \ud074\ub7ec\uc2a4\ud130 \uc218\ub97c \ubbf8\ub9ac \uc54c \uc218 \uc5c6\uc73c\ubbc0\ub85c \uacb0\uc815\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub420 \uc218 \uc788\ub294 \ub450 \uac00\uc9c0 \uadf8\ub798\ud504\ub97c \ub9cc\ub4ed\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1. \uc804\uccb4 \uc81c\uacf1\ud569\uc5d0 \ub300\ud55c \ud074\ub7ec\uc2a4\ud130 \uc218<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\uba3c\uc800 <strong>fviz_nbclust()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud074\ub7ec\uc2a4\ud130 \uc218\uc640 \uc81c\uacf1\ud569\uc758 \ud569\uacc4\uc5d0 \ub300\ud55c \ud50c\ub86f\uc744 \ub9cc\ub4ed\ub2c8\ub2e4.<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>fviz_nbclust(df, pam, method = \u201c <span style=\"color: #008000;\">wss<\/span> \u201d)<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12327 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kmedoide1.png\" alt=\"k-medoid\ub97c \uc704\ud55c \ucd5c\uc801\uc758 \ud074\ub7ec\uc2a4\ud130\" width=\"462\" height=\"449\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">\uc81c\uacf1\ud569\uc758 \ud569\uacc4\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \ud074\ub7ec\uc2a4\ud130 \uc218\ub97c \ub298\ub9ac\uba74 \ud56d\uc0c1 \uc99d\uac00\ud569\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc774\ub7ec\ud55c \uc720\ud615\uc758 \ud50c\ub86f\uc744 \ub9cc\ub4e4 \ub54c \uc81c\uacf1\ud569\uc774 &#8220;\uad6c\ubd80\ub7ec\uc9c0\uac70\ub098&#8221; \uc218\ud3c9\uc744 \uc774\ub8e8\uae30 \uc2dc\uc791\ud558\ub294 &#8220;\ubb34\ub98e&#8221;\uc744 \ucc3e\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ud50c\ub86f\uc758 \uace1\ub960 \uc9c0\uc810\uc740 \uc77c\ubc18\uc801\uc73c\ub85c \ucd5c\uc801\uc758 \ud074\ub7ec\uc2a4\ud130 \uc218\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. \uc774 \uc218\uce58\ub97c \ub118\uc5b4\uc11c\uba74 <a href=\"https:\/\/statorials.org\/ko\/\u1106\u1165\u1109\u1175\u11ab\u1105\u1165\u1102\u1175\u11bc-\u1100\u116a\u110c\u1165\u11a8\u1112\u1161\u11b8\/\" target=\"_blank\" rel=\"noopener noreferrer\">\uacfc\uc801\ud569\uc774<\/a> \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774 \uadf8\ub798\ud504\uc758 \uacbd\uc6b0 k = 4\uac1c \ud074\ub7ec\uc2a4\ud130\uc5d0 \uc791\uc740 \uaf2c\uc784 \ub610\ub294 &#8220;\uad74\uace1&#8221;\uc774 \uc788\ub294 \uac83\uc73c\ub85c \ub098\ud0c0\ub0a9\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2. \uad70\uc9d1 \uc218\uc640 \uaca9\ucc28 \ud1b5\uacc4<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\ucd5c\uc801\uc758 \ud074\ub7ec\uc2a4\ud130 \uc218\ub97c \uacb0\uc815\ud558\ub294 \ub610 \ub2e4\ub978 \ubc29\ubc95\uc740 \ub2e4\uc591\ud55c k \uac12\uc5d0 \ub300\ud55c \uc804\uccb4 \ud074\ub7ec\uc2a4\ud130 \ub0b4 \ubcc0\ub3d9\uc744 \ud074\ub7ec\uc2a4\ud130\ub9c1\uc774 \uc5c6\ub294 \ubd84\ud3ec\uc5d0 \ub300\ud55c \uc608\uc0c1 \uac12\uacfc \ube44\uad50\ud558\ub294 <a style=\"color: #000000;\" href=\"https:\/\/web.stanford.edu\/~hastie\/Papers\/gap.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">\ud3b8\ucc28 \ud1b5\uacc4<\/a> \ub77c\ub294 \uce21\uc815\ud56d\ubaa9\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>\ud074\ub7ec\uc2a4\ud130<\/em> \ud328\ud0a4\uc9c0\uc758 <strong>clusGap()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac01 \ud074\ub7ec\uc2a4\ud130 \uc218\uc5d0 \ub300\ud55c \uac04\uaca9 \ud1b5\uacc4\ub97c \uacc4\uc0b0\ud560 \uc218 \uc788\uc744 \ubfd0\ub9cc \uc544\ub2c8\ub77c <strong>fviz_gap_stat()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud074\ub7ec\uc2a4\ud130 \ub300 \uac04\uaca9 \ud1b5\uacc4\uc758 \ud50c\ub86f\uc744 \uacc4\uc0b0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#calculate gap statistic based on number of clusters\n<\/span>gap_stat &lt;- clusGap(df,\n                    FUN = pam,\n                    K.max = 10, <span style=\"color: #008080;\">#max clusters to consider<\/span>\n                    B = 50) <span style=\"color: #008080;\">#total bootstrapped iterations<\/span>\n\n<span style=\"color: #008080;\">#plot number of clusters vs. gap statistic\n<\/span>fviz_gap_stat(gap_stat)<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12328 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kmedoide2.png\" alt=\"K-medoids R\uc758 \ucd5c\uc801 \ud074\ub7ec\uc2a4\ud130 \uc218\" width=\"443\" height=\"441\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">\uadf8\ub798\ud504\uc5d0\uc11c \uac04\uaca9 \ud1b5\uacc4\ub294 k = 4 \ud074\ub7ec\uc2a4\ud130\uc5d0\uc11c \uac00\uc7a5 \ub192\ub2e4\ub294 \uac83\uc744 \uc54c \uc218 \uc788\uc73c\uba70 \uc774\ub294 \uc774\uc804\uc5d0 \uc0ac\uc6a9\ud55c \ud314\uafc8\uce58 \ubc29\ubc95\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>4\ub2e8\uacc4: Optimal <em>K\ub97c<\/em> \uc0ac\uc6a9\ud558\uc5ec K-Medoids \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc218\ud589<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\ub9c8\uc9c0\ub9c9\uc73c\ub85c <em>k<\/em> -4\uc5d0 \ub300\ud55c \ucd5c\uc801 \uac12\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \uc138\ud2b8\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#make this example reproducible\n<span style=\"color: #000000;\">set.seed(1)<\/span>\n\n#perform k-medoids clustering with k = 4 clusters\n<\/span>kmed &lt;- pam(df, k = 4)\n\n<span style=\"color: #008080;\">#view results\n<\/span>kmed\n\n              ID Murder Assault UrbanPop Rape\nAlabama 1 1.2425641 0.7828393 -0.5209066 -0.003416473\nMichigan 22 0.9900104 1.0108275 0.5844655 1.480613993\nOklahoma 36 -0.2727580 -0.2371077 0.1699510 -0.131534211\nNew Hampshire 29 -1.3059321 -1.3650491 -0.6590781 -1.252564419\nVector clustering:\n       Alabama Alaska Arizona Arkansas California \n             1 2 2 1 2 \n      Colorado Connecticut Delaware Florida Georgia \n             2 3 3 2 1 \n        Hawaii Idaho Illinois Indiana Iowa \n             3 4 2 3 4 \n        Kansas Kentucky Louisiana Maine Maryland \n             3 3 1 4 2 \n Massachusetts Michigan Minnesota Mississippi Missouri \n             3 2 4 1 3 \n       Montana Nebraska Nevada New Hampshire New Jersey \n             3 3 2 4 3 \n    New Mexico New York North Carolina North Dakota Ohio \n             2 2 1 4 3 \n      Oklahoma Oregon Pennsylvania Rhode Island South Carolina \n             3 3 3 3 1 \n  South Dakota Tennessee Texas Utah Vermont \n             4 1 2 3 4 \n      Virginia Washington West Virginia Wisconsin Wyoming \n             3 3 4 4 3 \nObjective function:\n   build swap \n1.035116 1.027102 \n\nAvailable components:\n [1] \"medoids\" \"id.med\" \"clustering\" \"objective\" \"isolation\" \n [6] \"clusinfo\" \"silinfo\" \"diss\" \"call\" \"data\"          \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">4\uac1c\uc758 \ud074\ub7ec\uc2a4\ud130 \uc911\uc2ec\uc740 \ubaa8\ub450 \ub370\uc774\ud130 \uc138\ud2b8\uc758 \uc2e4\uc81c \uad00\uce21\uce58\uc785\ub2c8\ub2e4. \ucd9c\ub825 \uc0c1\ub2e8 \uadfc\ucc98\uc5d0\uc11c 4\uac1c\uc758 \uc911\uc2ec\uc774 \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud0dc\uc784\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\uc568\ub77c\ubc30\ub9c8<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ubbf8\uc2dc\uac04<\/span><\/li>\n<li> <span style=\"color: #000000;\">\uc624\ud074\ub77c\ud638\ub9c8<\/span><\/li>\n<li> <span style=\"color: #000000;\">\ub274\ud584\ud504\uc154<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\"><strong>fivz_cluster()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucd95\uc5d0 \ucc98\uc74c \ub450 \uac1c\uc758 \uc8fc\uc131\ubd84\uc744 \ud45c\uc2dc\ud558\ub294 \uc0b0\uc810\ub3c4\uc5d0\uc11c \ud074\ub7ec\uc2a4\ud130\ub97c \uc2dc\uac01\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#plot results of final k-medoids model\n<span style=\"color: #000000;\">fviz_cluster(kmed, data = df)\n<\/span><\/span><\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12329 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kmedoide3.png\" alt=\"R\uc5d0 k-medoid \ud074\ub7ec\uc2a4\ud130 \ud50c\ub85c\ud305\" width=\"497\" height=\"500\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">\uac01 \uc8fc\uc758 \ud074\ub7ec\uc2a4\ud130 \ud560\ub2f9\uc744 \uc6d0\ubcf8 \ub370\uc774\ud130\uc138\ud2b8\uc5d0 \ucd94\uac00\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#add cluster assignment to original data\n<span style=\"color: #000000;\">final_data &lt;- cbind(USArrests, cluster = kmed$cluster)\n<\/span>\n#view final data\n<span style=\"color: #000000;\">head(final_data)\n\n           Murder Assault UrbanPop Rape cluster\nAlabama 13.2 236 58 21.2 1\nAlaska 10.0 263 48 44.5 2\nArizona 8.1 294 80 31.0 2\nArkansas 8.8 190 50 19.5 1\nCalifornia 9.0 276 91 40.6 2\nColorado 7.9 204 78 38.7 2\n<\/span><\/span><\/strong><\/pre>\n<hr>\n<p> <span style=\"color: #000000;\">\uc774 \uc608\uc81c\uc5d0 \uc0ac\uc6a9\ub41c \uc804\uccb4 R \ucf54\ub4dc\ub294 <a href=\"https:\/\/github.com\/Statorials\/R-Guides\/blob\/main\/k_medoids.R\" target=\"_blank\" rel=\"noopener noreferrer\">\uc5ec\uae30\uc5d0\uc11c<\/a> \ucc3e\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \ub370\uc774\ud130 \uc138\ud2b8 \ub0b4\uc5d0\uc11c \uad00\ucc30 \uadf8\ub8f9 \ub610\ub294 \ud074\ub7ec\uc2a4\ud130\ub97c \ucc3e\uc73c\ub824\uace0 \uc2dc\ub3c4\ud558\ub294 \uae30\uacc4 \ud559\uc2b5 \uae30\uc220\uc785\ub2c8\ub2e4. \ubaa9\ud45c\ub294 \uac01 \uad70\uc9d1 \ub0b4\uc758 \uad00\uce21\uac12\uc774 \uc11c\ub85c \ub9e4\uc6b0 \uc720\uc0ac\ud55c \ubc18\uba74, \ub2e4\ub978 \uad70\uc9d1\uc758 \uad00\uce21\uac12\uc740 \uc11c\ub85c \uc0c1\ub2f9\ud788 \ub2e4\ub978 \uad70\uc9d1\uc744 \ucc3e\ub294 \uac83\uc785\ub2c8\ub2e4. \ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \ube44\uc9c0\ub3c4 \ud559\uc2b5 \uc758 \ud55c \ud615\ud0dc\uc785\ub2c8\ub2e4 . \uc751\ub2f5 \ubcc0\uc218 \uc758 \uac12\uc744 \uc608\uce21\ud558\ub294 \uac83\uc774 \uc544\ub2c8\ub77c \ub2e8\uc21c\ud788 \ub370\uc774\ud130 \uc138\ud2b8 \ub0b4\uc5d0\uc11c \uad6c\uc870\ub97c \ucc3e\uc73c\ub824\uace0 \ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \ud074\ub7ec\uc2a4\ud130\ub9c1\uc740 \uae30\uc5c5\uc774 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1244","post","type-post","status-publish","format-standard","hentry","category-20"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608<\/title>\n<meta name=\"description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ko\/r\u110b\u1174-k\u1100\u1162\u110b\u1174-\u1106\u1166\u1103\u1175\u110b\u1175\u1103\u1173\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608\" \/>\n<meta property=\"og:description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ko\/r\u110b\u1174-k\u1100\u1162\u110b\u1174-\u1106\u1166\u1103\u1175\u110b\u1175\u1103\u1173\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T03:54:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kmedoide1.png\" \/>\n<meta name=\"author\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/\",\"url\":\"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/\",\"name\":\"R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ko\/#website\"},\"datePublished\":\"2023-07-27T03:54:17+00:00\",\"dateModified\":\"2023-07-27T03:54:17+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\"},\"description\":\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\uc9d1\",\"item\":\"https:\/\/statorials.org\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R\uc758 k-medoids: \ub2e8\uacc4\ubcc4 \uc608\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ko\/#website\",\"url\":\"https:\/\/statorials.org\/ko\/\",\"name\":\"Statorials\",\"description\":\"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ko\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\",\"name\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\"},\"description\":\"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30\",\"sameAs\":[\"https:\/\/statorials.org\/ko\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608","description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ko\/r\u110b\u1174-k\u1100\u1162\u110b\u1174-\u1106\u1166\u1103\u1175\u110b\u1175\u1103\u1173\/","og_locale":"ko_KR","og_type":"article","og_title":"R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608","og_description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.","og_url":"https:\/\/statorials.org\/ko\/r\u110b\u1174-k\u1100\u1162\u110b\u1174-\u1106\u1166\u1103\u1175\u110b\u1175\u1103\u1173\/","og_site_name":"Statorials","article_published_time":"2023-07-27T03:54:17+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/kmedoide1.png"}],"author":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","Est. reading time":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/","url":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/","name":"R\uc758 K-Medoids: \ub2e8\uacc4\ubcc4 \uc608","isPartOf":{"@id":"https:\/\/statorials.org\/ko\/#website"},"datePublished":"2023-07-27T03:54:17+00:00","dateModified":"2023-07-27T03:54:17+00:00","author":{"@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4"},"description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c k-medoids \ud074\ub7ec\uc2a4\ud130\ub9c1\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \ub2e8\uacc4\ubcc4 \uc608\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ko\/r%e1%84%8b%e1%85%b4-k%e1%84%80%e1%85%a2%e1%84%8b%e1%85%b4-%e1%84%86%e1%85%a6%e1%84%83%e1%85%b5%e1%84%8b%e1%85%b5%e1%84%83%e1%85%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\uc9d1","item":"https:\/\/statorials.org\/ko\/"},{"@type":"ListItem","position":2,"name":"R\uc758 k-medoids: \ub2e8\uacc4\ubcc4 \uc608"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ko\/#website","url":"https:\/\/statorials.org\/ko\/","name":"Statorials","description":"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ko\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4","name":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8"},"description":"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30","sameAs":["https:\/\/statorials.org\/ko"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/1244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}