{"id":1726,"date":"2024-11-05T14:20:39","date_gmt":"2024-11-05T14:20:39","guid":{"rendered":"http:\/\/www.statdc.com\/?p=1726"},"modified":"2025-06-11T01:23:00","modified_gmt":"2025-06-11T01:23:00","slug":"%eb%8b%a4%ec%a4%91%eb%8c%80%ec%9d%91%eb%b6%84%ec%84%9dmca","status":"publish","type":"post","link":"http:\/\/www.inmining.co.kr\/?p=1726","title":{"rendered":"\ub2e4\uc911\ub300\uc751\ubd84\uc11d(MCA)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\ub2e4\uc911 \ub300\uc751 \ubd84\uc11d(MCA: Muliple Correspondence Analysis)\ub294 \ub2e4\ubcc0\ub7c9 \ubc94\uc8fc\ud615 \uc790\ub8cc\uc758 \ud0d0\uc0c9\uc801 \ubd84\uc11d\uc5d0 \uc774\uc6a9\ub418\ub294 \ucc28\uc6d0 \ucd95\uc18c \uae30\ubc95\uc73c\ub85c  \ub300\uc751\ubd84\uc11d(CA:Corespondance Analysis)\uc758 \ud655\uc7a5\ud615\uc774\ub77c\uace0 \ud560 \uc218 \uc788\ub2e4. \ub610\ud55c, \uc774\ub294 \ubc94\uc8fc\ud615 \ub370\uc774\ud130\uc5d0 \ub300\ud55c \uc8fc\uc131\ubd84\ubd84\uc11d(PCA)\ub77c\uace0 \ubcfc \uc218\ub3c4 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc218\uce58\ud615(\uc5f0\uc18d\ud615)\uc790\ub8cc\uc5d0\uc11c\uc758 \uc8fc\uc131\ubd84\ubd84\uc11d\uc740 \uc790\ub8cc\uac04 \uc120\ud615\uc870\ud569\uc744 \uae30\uc900\uc73c\ub85c \uacf5\ubd84\uc0b0\ubd84\uc11d\uae30\ubc18 \uc8fc\uc131\ubd84\uc744 \ucd94\ucd9c\ud558\uc9c0\ub9cc, \ubc94\uc8fc\ud615 \uc790\ub8cc\uc5d0\uc11c\ub294 \uacf5\ubd84\uc0b0\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uae30 \ub54c\ubb38\uc5d0 \ubc94\uc8fc\ud615 \ubcc0\uc218\uc758 \ube48\ub3c4\uae30\ubc18 \uce74\uc774\uc81c\uacf1 \ubd84\uc11d\uc744 \uc218\ud589\ud55c\ub2e4. \uce74\uc774\uc81c\uacf1\uac12\uc774 \ucee4\uc9c0\uba74 \ubcc0\uc218\uac04 \uc885\uc18d\uad00\uacc4\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub2e4. \ubcc0\uc218 \uac04 \uce74\uc774\uc81c\uacf1 \uac80\uc815\ud1b5\uacc4\ub7c9\uc73c\ub85c \ub9cc\ub4e0 \ud589\ub82c\uc744 \ubd84\ud574(Decomposition)\ud558\uc5ec \uc694\uc778\uc744 \ucc3e\uc544\ub0b4\ub294 \uac83\uc774 \ub300\uc751\ubd84\uc11d(CA)\uc774\uace0, \uc5ec\ub7ec\ubcc0\uc218\ub85c \ud655\uc7a5\ud55c\uac83\uc774 \ub2e4\uc911 \ub300\uc751 \ubd84\uc11d(MCA) \uc774\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc8fc\ub85c \uc124\ubb38 \uc870\uc0ac\uc5d0\uc11c \ub2e4\uc218\uc758 \ubc94\uc8fc\ud615 \ubcc0\uc218(\uc608: \uc131\ubcc4, \uc9c1\uc5c5, \uc120\ud638\ub3c4)\ub4e4\uc774 \uc788\uc744 \ub54c \uc774\ub4e4\uc758 \ud328\ud134\uc744 \uc774\ud574\ud558\uace0\uc790 \ud560 \ub54c \uc720\uc6a9\ud558\uac8c \uc0ac\uc6a9\ub418\uba70, \uad00\uce21\uce58\uc640 \ubcc0\uc218\ub4e4 \uc0ac\uc774\uc758 \uad00\uacc4\ub97c 2\ucc28\uc6d0 \ub610\ub294 3\ucc28\uc6d0\uc758 \uc2dc\uac01\uc801 \uc9c0\ub3c4 \uc0c1\uc5d0 \ud45c\ud604\ud558\uc5ec \ub370\uc774\ud130\uc758 \uad6c\uc870\ub97c \ud30c\uc545\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EB%8B%A4%EC%A4%91%EB%8C%80%EC%9D%91%EB%B6%84%EC%84%9D%EC%9D%98_%EC%A3%BC%EC%9A%94_%ED%8A%B9%EC%A7%95%EA%B3%BC_%EB%8B%A8%EA%B3%84\"><\/span>\ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uacfc \ub2e8\uacc4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\ub370\uc774\ud130 \ub9e4\ud2b8\ub9ad\uc2a4 \uad6c\uc131<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\uac01 \uad00\uce21\uce58(\uc751\ub2f5\uc790)\uc640 \ubcc0\uc218(\uc124\ubb38 \ud56d\ubaa9)\ub97c \ubc94\uc8fc\ud615\uc73c\ub85c \ud45c\ud604\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ub450 \ubcc0\uc218 \uac04\uc758 \uad50\ucc28\ud45c\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c \uae30\ubc18\uc73c\ub85c \ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\ud589\ub82c \ubd84\ud574<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\uc8fc\uc131\ubd84\ubd84\uc11d\uacfc \uc720\uc0ac\ud558\uac8c \ud2b9\uc787\uac12 \ubd84\ud574(SVD)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uad00\uce21\uce58\uc640 \ubcc0\uc218 \uac04\uc758 \uad00\uacc4\ub97c \uc800\ucc28\uc6d0 \uacf5\uac04\uc5d0 \ud22c\uc601\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ud2b9\uc774\uac12 \ubd84\ud574\ub97c \ud1b5\ud574 \uc911\uc694\ud55c \ucd95(\uc131\ubd84)\uc744 \ucc3e\uace0, \uc774 \ucd95\uc744 \ud1b5\ud574 \ub370\uc774\ud130\ub97c 2\ucc28\uc6d0 \ub610\ub294 3\ucc28\uc6d0 \uc0c1\uc5d0 \uc2dc\uac01\ud654\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\uad00\uce21\uce58\uc640 \ubc94\uc8fc\uc758 \uc2dc\uac01\ud654<\/strong>:\n<ul class=\"wp-block-list\">\n<li>MCA \uacb0\uacfc\ub294 \uc8fc\ub85c \uc810 \uadf8\ub798\ud504\ub85c \uc2dc\uac01\ud654\ub418\uba70, \uac01 \uc810\uc740 \uad00\uce21\uce58\ub098 \ubc94\uc8fc\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \uc11c\ub85c \uac00\uae4c\uc6b4 \uc810\ub4e4\uc740 \uc720\uc0ac\ud55c \ud328\ud134\uc744 \uacf5\uc720\ud55c\ub2e4\ub294 \uc758\ubbf8\uc774\uba70, \uba40\ub9ac \ub5a8\uc5b4\uc9c4 \uc810\ub4e4\uc740 \uc0c1\ubc18\ub41c \ud328\ud134\uc744 \uac00\uc9d0\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\ud574\uc11d<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\uc8fc\ub41c \uc131\ubd84\ub4e4\uc774 \ubb34\uc5c7\uc744 \uc758\ubbf8\ud558\ub294\uc9c0 \ud574\uc11d\ud558\uba70, \uc774\ub97c \ud1b5\ud574 \ubcc0\uc218\ub4e4 \uac04\uc758 \uad00\uacc4\uc640 \uad70\uc9d1\uc744 \ubd84\uc11d\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud2b9\uc815 \uc9d1\ub2e8\uc774 \uacf5\uc720\ud558\ub294 \ud2b9\uc131\uc774\ub098 \ubcc0\uc218\ub4e4 \uac04\uc758 \uc5f0\uad00\uc131\uc744 \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EB%8B%A4%EC%A4%91%EB%8C%80%EC%9D%91%EB%B6%84%EC%84%9D%EC%9D%98_%ED%99%9C%EC%9A%A9_%EC%98%88%EC%8B%9C\"><\/span>\ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc758 \ud65c\uc6a9 \uc608\uc2dc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\uace0\uac1d \uc138\ubd84\ud654<\/strong>: \uace0\uac1d\uc758 \uc131\ubcc4, \uc5f0\ub839\ub300, \uc120\ud638\ub3c4 \ub4f1\uc758 \ubcc0\uc218\ub4e4\uc744 \ubd84\uc11d\ud558\uc5ec \uc720\uc0ac\ud55c \uc18d\uc131\uc744 \uac00\uc9c4 \uace0\uac1d \uadf8\ub8f9\uc744 \ucc3e\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ub9c8\ucf00\ud305 \uc870\uc0ac<\/strong>: \uc81c\ud488\uc5d0 \ub300\ud55c \uc120\ud638\ub3c4, \uc0ac\uc6a9 \ube48\ub3c4, \uad6c\ub9e4 \uc774\uc720 \ub4f1\uc758 \ubcc0\uc218\ub4e4 \uac04\uc758 \uad00\uacc4\ub97c \ubd84\uc11d\ud558\uc5ec \ub9c8\ucf00\ud305 \uc804\ub7b5\uc744 \uc218\ub9bd\ud558\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\uc0ac\ud68c\uacfc\ud559 \uc5f0\uad6c<\/strong>: \uc124\ubb38 \uc870\uc0ac \uc751\ub2f5 \ub370\uc774\ud130\ub97c \ud65c\uc6a9\ud574 \uc0ac\ud68c\uc801 \uc9d1\ub2e8 \uac04\uc758 \uc720\uc0ac\uc131\uc774\ub098 \ucc28\uc774\ub97c \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ucc98\ub7fc \ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc740 \ubc94\uc8fc\ud615 \ub370\uc774\ud130\uc5d0\uc11c \uc758\ubbf8 \uc788\ub294 \ud328\ud134\uc744 \ucd94\ucd9c\ud558\uace0, \uc774\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \uc774\ud574\ud558\uae30 \uc27d\uac8c \ud558\ub294 \ub370 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"R_code\"><\/span>R code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc744 R\uc5d0\uc11c \uc218\ud589\ud558\uae30 \uc704\ud574 \uc8fc\ub85c <code>FactoMineR<\/code> \ud328\ud0a4\uc9c0\ub97c \ub9ce\uc774 \uc0ac\uc6a9\ud55c\ub2e4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \ud328\ud0a4\uc9c0 \uc124\uce58 \ubc0f \ub85c\ub4dc\ninstall.packages(\"FactoMineR\")\ninstall.packages(\"factoextra\")  # \uc2dc\uac01\ud654 \ud328\ud0a4\uc9c0\nlibrary(FactoMineR)\nlibrary(factoextra)\n\n# \uc608\uc81c \ub370\uc774\ud130\uc14b (FactoMineR \ud328\ud0a4\uc9c0\uc5d0 \ud3ec\ud568\ub41c tea \ub370\uc774\ud130\uc14b \uc0ac\uc6a9)\ndata(\"tea\")\n\n# \ub2e4\uc911\ub300\uc751\ubd84\uc11d \uc218\ud589\nmca_result &lt;- MCA(tea, quali.sup = 19:36)  # \ubc94\uc8fc\ud615 \ubcc0\uc218\ub4e4\uc744 \ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc5d0 \uc0ac\uc6a9\n\n# \uacb0\uacfc \uc694\uc57d\nsummary(mca_result)\n\n# \ucc28\uc6d0 \ucd95\uc18c\ub41c \uacb0\uacfc\ub97c \uc2dc\uac01\ud654\nfviz_mca_biplot(mca_result, repel = TRUE, \n                ggtheme = theme_minimal())  # Biplot \uc2dc\uac01\ud654\n\n# \ubcc0\uc218\ub9cc \uc2dc\uac01\ud654\nfviz_mca_var(mca_result, choice = \"mca.cor\", repel = TRUE, \n             ggtheme = theme_minimal())  # \ubcc0\uc218\ub4e4 \uac04\uc758 \uad00\uacc4 \uc2dc\uac01\ud654\n\n# \uad00\uce21\uce58(\uc751\ub2f5\uc790)\ub9cc \uc2dc\uac01\ud654\nfviz_mca_ind(mca_result, \n             label = \"none\", # \uad00\uce21\uce58 \ub77c\ubca8 \uc228\uae30\uae30\n             habillage = \"Cluster\", # \ud074\ub7ec\uc2a4\ud130\ubcc4 \uc0c9\uc0c1 \uad6c\ubd84\n             addEllipses = TRUE, ellipse.type = \"confidence\",\n             ggtheme = theme_minimal())\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EC%BD%94%EB%93%9C_%EC%84%A4%EB%AA%85\"><\/span>\ucf54\ub4dc \uc124\uba85<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\ud328\ud0a4\uc9c0 \uc124\uce58 \ubc0f \ub85c\ub4dc<\/strong>: <code>FactoMineR<\/code> \ud328\ud0a4\uc9c0\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc744 \uc218\ud589\ud558\uace0, <code>factoextra<\/code> \ud328\ud0a4\uc9c0\ub97c \uc0ac\uc6a9\ud574 \uc2dc\uac01\ud654\ub97c \uc9c4\ud589\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ub370\uc774\ud130 \ubd88\ub7ec\uc624\uae30<\/strong>: <code>tea<\/code> \ub370\uc774\ud130\uc14b\uc740 <code>FactoMineR<\/code> \ud328\ud0a4\uc9c0\uc5d0 \ud3ec\ud568\ub41c \uc608\uc81c \ub370\uc774\ud130\ub85c, \ub2e4\uc591\ud55c \ubc94\uc8fc\ud615 \ubcc0\uc218\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ub2e4\uc911\ub300\uc751\ubd84\uc11d \uc218\ud589<\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>MCA()<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc911\ub300\uc751\ubd84\uc11d\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code>quali.sup<\/code> \uc778\uc790\ub294 \ubcf4\uc870 \ubcc0\uc218(\uc608\ub97c \ub4e4\uc5b4, \ubd84\uc11d\uc5d0 \ud3ec\ud568\ud558\uc9c0 \uc54a\uc744 \ubcc0\uc218\ub97c \uc9c0\uc815)\ub97c \uc120\ud0dd\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\uacb0\uacfc \uc694\uc57d<\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>summary()<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud574 \ub2e4\uc911\ub300\uc751\ubd84\uc11d \uacb0\uacfc\uc5d0 \ub300\ud55c \uc694\uc57d \uc815\ubcf4\ub97c \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\uc2dc\uac01\ud654<\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>fviz_mca_biplot()<\/code>\uc73c\ub85c \ubcc0\uc218\uc640 \uad00\uce21\uce58\ub97c \ud568\uaed8 \uc2dc\uac01\ud654\ud558\uc5ec \uc774\ub4e4\uc758 \uad00\uacc4\ub97c \ud30c\uc545\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code>fviz_mca_var()<\/code>\ub85c \ubcc0\uc218\ub4e4 \uac04\uc758 \uad00\uacc4\ub97c \uc2dc\uac01\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code>fviz_mca_ind()<\/code>\ub85c \uad00\uce21\uce58(\uc608: \uc751\ub2f5\uc790) \uac04\uc758 \uad00\uacc4\ub97c \uc2dc\uac01\ud654\ud558\uba70, \uc774\ub54c \ud074\ub7ec\uc2a4\ud130\ubcc4\ub85c \uc0c9\uc0c1\uc744 \ub2e4\ub974\uac8c \ud558\uace0 \uc2e0\ub8b0\uad6c\uac04 \ud0c0\uc6d0\uc744 \ucd94\uac00\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ubc94\uc8fc\ud615 \ubcc0\uc218\ub4e4 \uac04\uc758 \uad00\uacc4\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \ubd84\uc11d\ud560 \uc218 \uc788\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\uc911 \ub300\uc751 \ubd84\uc11d(MCA: Muliple Correspondence Analysis)\ub294 \ub2e4\ubcc0\ub7c9 \ubc94\uc8fc\ud615 \uc790\ub8cc\uc758 \ud0d0\uc0c9\uc801 \ubd84\uc11d\uc5d0 \uc774\uc6a9\ub418\ub294 \ucc28\uc6d0 \ucd95\uc18c \uae30\ubc95\uc73c\ub85c \ub300\uc751\ubd84\uc11d(CA:Corespondance Analysis)\uc758 \ud655\uc7a5\ud615\uc774\ub77c\uace0&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1731,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-stat","wpcat-6-id"],"_links":{"self":[{"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1726"}],"version-history":[{"count":3,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1726\/revisions"}],"predecessor-version":[{"id":1732,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1726\/revisions\/1732"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=\/wp\/v2\/media\/1731"}],"wp:attachment":[{"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1726"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inmining.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}