{"id":1497,"date":"2025-10-30T10:29:47","date_gmt":"2025-10-30T01:29:47","guid":{"rendered":"http:\/\/dm-game.net\/?p=1497"},"modified":"2025-10-30T11:42:37","modified_gmt":"2025-10-30T02:42:37","slug":"ma-04-%e3%80%80%e6%ac%a1%e5%85%83%e5%89%8a%e6%b8%9b","status":"publish","type":"post","link":"http:\/\/dm-game.net\/?p=1497","title":{"rendered":"Ma.09.\u3000\u6b21\u5143\u524a\u6e1b"},"content":{"rendered":"\n<p>\u4eca\u56de\u306e\u5206\u6790(naiman)\u3067\u306f\u3001\u5909\u6570\u304c340\u500b\u3082\u3042\u308a\u3001\u6b63\u76f4\u3046\u3093\u3056\u308a\u3059\u308b\u307b\u3069\u306e\u8cea\u554f\u6570\u3067\u3059\u3002<br>\u3055\u3089\u306b\u8a00\u3048\u3070\u3001\u69cb\u9020\u5316\u3055\u308c\u3066\u3044\u306a\u3044\uff08\u7406\u8ad6\u7684\u306b\u6574\u7406\u3055\u308c\u3066\u3044\u306a\u3044\uff09\u8cea\u554f\u7fa4\u306a\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306b\u5909\u6570\u3092\u6271\u3048\u3070\u3088\u3044\u306e\u304b\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u3001\u3068\u3044\u3046\u96e3\u3057\u3055\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001q3\uff08\u751f\u6d3b\u6e80\u8db3\uff09\u3001q4\uff08\u751f\u6d3b\u4e0d\u6e80\uff09\u3001q30\uff08\u74b0\u5883\u4e0d\u6e80\uff09\u3068\u3044\u3063\u305f\u8cea\u554f\u7fa4\u306f\u3001\u305d\u3082\u305d\u3082\u4e00\u3064\u306e\u307e\u3068\u307e\u308a\u3092\u6301\u3063\u305f\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u58c1\u306b\u7a81\u304d\u5f53\u305f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9805\u76ee\u304c\u3042\u308b\u7a0b\u5ea6\u7cfb\u7d71\u7acb\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u306a\u3089\u3001\u03b1\u4fc2\u6570\u3084KMO\u306a\u3069\u306e\u6307\u6a19\uff08\u56e0\u5b50\u5206\u6790\u306e\u6307\u6a19\uff09\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u3001\u304a\u304a\u3088\u305d\u306e\u611f\u89e6\u3092\u3064\u304b\u3080\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002<br>\u305f\u3060\u3057\u3001\u300c\u3060\u304b\u3089\u3069\u3046\u306a\u3093\u3060\uff1f\u300d\u3068\u3044\u3046\u6b21\u306e\u58c1\u304c\u3084\u3063\u3066\u304d\u307e\u3059\u3002<br>\u3064\u307e\u308a\u3001\u81ea\u5206\u306f\u3053\u306e\u30c7\u30fc\u30bf\u306e<strong>\u80cc\u666f\u3092\u7406\u89e3\u3057\u305f\u3044<\/strong>\u306e\u304b\u3001\u305d\u308c\u3068\u3082<strong>\u4e0a\u624b\u306b\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3057\u3066\u6d3b\u7528\u3057\u305f\u3044<\/strong>\u306e\u304b\u2014\u2014\u3069\u3061\u3089\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u3001\u306f\u3063\u304d\u308a\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u8003\u3048\u308b\u3053\u3068\u306f\u3001\u4e3b\u6210\u5206\u5206\u6790\uff08PCA\uff09\u3068\u56e0\u5b50\u5206\u6790\uff08FA\uff09\u3068\u3044\u3046<strong>\u524d\u63d0\u3068\u6210\u679c\u7269\u306e\u6027\u8cea\u304c\u7570\u306a\u308b<\/strong>\u3001\u3057\u304b\u3057\u7d50\u679c\u304c\u4f3c\u3066\u3044\u308b\u5206\u6790\u65b9\u6cd5\u306e\u9078\u629e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u500b\u4eba\u7684\u306b\u4ee5\u4e0b\u306e\u7279\u5fb4\u3092\u8003\u3048\u3066\u3001\u5206\u6790\u65b9\u6cd5\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e3b\u6210\u5206\u5206\u6790\u306f\u3001\u3067\u304d\u308b\u3060\u3051\u60c5\u5831\u3092\u5931\u308f\u306a\u3044\u3088\u3046\u306b\u6b21\u5143\u3092\u7e2e\u7d04\u3057\u3001\u5f8c\u7d9a\u306e\u5206\u6790\u3084\u6d3b\u7528\u306b\u4f7f\u3048\u308b\u65b0\u3057\u3044\u5909\u6570\uff08\u4e3b\u6210\u5206\uff09\u3092\u751f\u6210\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u56e0\u5b50\u5206\u6790\u306f\u3001\u89b3\u6e2c\u9805\u76ee\u306e\u80cc\u5f8c\u306b\u3042\u308b\u69cb\u9020\u3084\u6f5c\u5728\u56e0\u5b50\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3057\u3001\u305d\u306e\u69cb\u9020\u3092\u53ef\u8996\u5316\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3064\u307e\u308a\u3001<strong>\u7d50\u679c\u3092\u4f7f\u3044\u305f\u3044\u306a\u3089PCA\u3001\u69cb\u9020\u3092\u7406\u89e3\u3057\u3066\u7d42\u308f\u308a\u305f\u3044\u306a\u3089FA<\/strong>\u3068\u3044\u3046\u7406\u89e3\u3067\u3059\u3002<br>\u5fc3\u7406\u3084\u793e\u4f1a\u8abf\u67fb\u306e\u9818\u57df\u3067\u306f\u3001\u6982\u5ff5\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u76ee\u7684\u306b\u306a\u308b\u305f\u3081\u3001FA\u304c\u4e3b\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<br><br>\u4e00\u65b9\u3067\u3001\u4eca\u56de\u306fPCA\u3092\u884c\u3044\u3001\u305d\u306e\u7d50\u679c\u3092\u6d3b\u7528\u3059\u308b\u65b9\u5411\u306b\u8235\u3092\u5207\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u305d\u306e\u7406\u7531\u306f\u3001\u4e3b\u6210\u5206\u5206\u6790\u3067\u5f97\u3089\u308c\u308b\u5909\u6570\u306f\u3001\u6f14\u7fd2\u306e\u5f8c\u534a\u306e\u81ea\u7531\u306a\u5206\u6790\u306b\u3082\u5fdc\u7528\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8ab2\u984c\u7684\u306b\u53d6\u308a\u7d44\u3093\u3067\u307f\u308b<\/h3>\n\n\n\n<p>\u4eca\u56de\u306fq30\u74b0\u5883\u4e0d\u6e80\uff086\u554f\u69cb\u6210\uff09\u306e\u6b21\u5143\u524a\u6e1b\u306b\u30c8\u30e9\u30a4\u3057\u307e\u3057\u3087\u3046\u3002<br>\u73fe\u72b6\u30016\u554f\u306e\u56de\u7b54\u306f\u305d\u308c\u305e\u308c\u304c\u72ec\u7acb\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u305f\u3081\u3001\u52a0\u7b97\u3082\u9069\u5207\u3067\u306f\u306a\u3044\u6c17\u304c\u3059\u308b\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u5f97\u70b9\u3092\u305d\u306e\u307e\u307e\u89e3\u91c8\u3059\u308b\u3057\u304b\u306a\u3055\u305d\u3046\u3067\u3059\u3002<br>\u300c\u4f4f\u3093\u3067\u3044\u308b\u5730\u57df\u306e\u74b0\u5883\u306b\u6e80\u8db3\u3057\u3066\u3044\u308b\u304b\uff1f\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u805e\u3044\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u3068\u3001\u611f\u3058\u308b\u306e\u3067\u3059\u304c\u3001\u73fe\u72b6\u3067\u306f6\u554f\u306e\u307e\u3068\u307e\u308a\u3068\u3057\u3066\u8003\u3048\u3089\u308c\u307e\u305b\u3093\u3002<br><br>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u306e6\u554f\u306e\u6d3b\u7528\u65b9\u6cd5\u3092\u8003\u3048\u308b\u4f5c\u696d\u306e\u4e00\u74b0\u3068\u3057\u3066\u4e3b\u6210\u5206\u5206\u6790\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br>\u307e\u305a\u306f\u3001\u3053\u308c\u3089\u306e\u76f8\u95a2\u884c\u5217\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>library(corrplot)\ncor_mat2 &lt;- cor(df_kankyo, method = \"spearman\")\ncorrplot.mixed(cor_mat2,\n               upper = \"color\",\n               lower = \"number\", \n               tl.pos = \"lt\")<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"597\" src=\"http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image.png\" alt=\"\" class=\"wp-image-1498\" style=\"width:424px;height:auto\" srcset=\"http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image.png 787w, http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-300x228.png 300w, http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-768x583.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<p>\u6b21\u306b\u3001dfsummary\u3092\u3064\u304b\u3063\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u5f97\u70b9\u3001\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"738\" src=\"http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-1.png\" alt=\"\" class=\"wp-image-1500\" style=\"width:636px;height:auto\" srcset=\"http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-1.png 957w, http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-1-300x231.png 300w, http:\/\/dm-game.net\/wp-content\/uploads\/2025\/10\/image-1-768x592.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n\n\n\n<p>\u56de\u7b54\u7d50\u679c\u304b\u3089\u8272\u3005\u3068\u601d\u3046\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304c\u3001<br>\u3053\u308c\u3089\u306e\u63a2\u7d22\u3001\u305d\u3057\u3066\u3001\u518d\u3073\u8cea\u554f\u7d19\u3092\u3088\u304f\u8aad\u3080\u3068\u3001\u3053\u308c\u3089\u306f\u3044\u304f\u3064\u306b\u5206\u3051\u3089\u308c\u308b\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u304b\uff1f<br>\u307e\u305a\u306f\u3001\u3053\u3053\u304c\u30b9\u30bf\u30fc\u30c8\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br><br>\u306a\u304a\u3001\u4e3b\u6210\u5206\u5206\u6790\u3067\u3082\uff08\u56e0\u5b50\u5206\u6790\u3067\u3082\uff09\u3001\u3060\u3044\u305f\u30441\u4e3b\u6210\u5206\u306f\u3001\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u8981\u7d04\u3057\u305f\u3088\u3046\u306a\u6210\u5206\uff08\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30d5\u30a1\u30af\u30bf\u30fc\uff09\u3067\u3042\u308b\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u3002<br>\u305d\u3046\u8003\u3048\u308b\u3068\u3001\u3042\u3068\u3044\u304f\u3064\u306e\u6210\u5206\u304c\u53d6\u308c\u308b\u3068\u60f3\u50cf\u3059\u308b\u304b\u3001\u3053\u3053\u304c\u91cd\u8981\u306a\u70b9\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u3042\u306a\u305f\u306e\u56de\u7b54<br><br>\u305d\u308c\u305e\u308c\u306e\u8981\u7d20\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3064\u3068\u3001\u60f3\u50cf\u3057\u307e\u3059\u304b\uff1f<\/p>\n<\/blockquote>\n\n\n\n<p>\u3055\u3066\u3001\u305d\u306e\u3088\u3046\u306b\u306a\u308b\u304b\u3092\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u30b3\u30fc\u30c9\u306f\u305f\u3063\u305f\u306e3\u884c\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kankyopca &lt;- prcomp(df_kankyo, scale=T)\u3000#\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u65bd\u3059\u308b\uff08prcomp(df, \u65b9\u6cd5\uff09)\nsummary(kankyopca) \nkankyopca$rotation #\u56fa\u6709\u30d9\u30af\u30c8\u30eb\uff08\u4e3b\u6210\u5206\u8ef8\u306e\u4fc2\u6570\uff09\u306e\u7b97\u51fa<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>prcomp()\u3000\u2192\u3000\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b<br>scale = TRUE\uff1a\u5404\u5909\u6570\u3092\u300c\u5e73\u57470\u30fb\u6a19\u6e96\u504f\u5dee1\u300d\u306b\u6a19\u6e96\u5316\u3057\u3066\u304b\u3089\u8a08\u7b97\u3057\u307e\u3059\u3002<br>\u3000\u3000\u3000\u2192 \u5358\u4f4d\u3084\u6841\u306e\u9055\u3046\u5909\u6570\u304c\u6df7\u3056\u3063\u3066\u3044\u3066\u3082\u3001\u516c\u5e73\u306b\u91cd\u307f\u3065\u3051\u3055\u308c\u307e\u3059\u3002<br><br><strong>summary(kankyopca) \u306e\u898b\u65b9<\/strong><br>Standard deviation\uff1a\u5404\u4e3b\u6210\u5206\u306e\u5e83\u304c\u308a\uff08\uff1d\u60c5\u5831\u91cf\u306e\u5927\u304d\u3055\u306e\u76ee\u5b89\uff09<br>Proportion of Variance\uff1a\u5404\u4e3b\u6210\u5206\u304c\u30c7\u30fc\u30bf\u306e\u3070\u3089\u3064\u304d\u306e\u4f55\u5272\u3092\u8aac\u660e\u3057\u3066\u3044\u308b\u304b\uff08\uff1d\u5bc4\u4e0e\u7387\uff09<br>Cumulative Proportion\uff1a\u4e0a\u304b\u3089\u4f55\u756a\u76ee\u307e\u3067\u8db3\u3057\u5408\u308f\u305b\u308b\u3068\u4f55\u5272\u8aac\u660e\u3067\u304d\u308b\u304b\uff08\uff1d\u7d2f\u7a4d\u5bc4\u4e0e\u7387\uff09<br><br><strong>pca $ rotation \uff08\uff1d\u300c\u4e3b\u6210\u5206\u8ef8\u306e\u4fc2\u6570\u300d\uff09<\/strong><br>\u884c\uff1a\u5143\u306e\u5909\u6570\u3001\u5217\uff1a\u4e3b\u6210\u5206\uff08PC1, PC2, \u2026\uff09\u3001\u5024\uff1a\u305d\u306e\u4e3b\u6210\u5206\u306b\u304a\u3051\u308b\u91cd\u307f\uff08\u4fc2\u6570\uff09<br>\u7d76\u5bfe\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u300c\u305d\u306e\u5909\u6570\u304c\u305d\u306e\u4e3b\u6210\u5206\u3092\u5f37\u304f\u8868\u3057\u3066\u3044\u308b\u300d\u3002<br>\u7b26\u53f7\uff08\uff0b\/\u2212\uff09\u306f\u300c\u4e00\u7dd2\u306b\u5897\u6e1b\u3059\u308b\u306e\u304b\u3001\u53cd\u5bfe\u306b\u52d5\u304f\u306e\u304b\u300d\u306e\u65b9\u5411\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>FA\u3067\u306f\u3001\u540c\u3058\u3088\u3046\u306a\u6bb5\u968e\u3067\u3001\u4fc2\u6570\u3092\u898b\u306a\u304c\u3089\u3001\u4e3b\u6210\u5206\uff08\u56e0\u5b50\uff09\u305d\u308c\u305e\u308c\u306b\u540d\u524d\u3092\u3064\u3051\u307e\u3059\u3002<br>PCA\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u3064\u3051\u308b\u306e\u304b\u306f\u4e0d\u660e\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306b\u540d\u524d\u3092\u3064\u3051\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3053\u306e\u969b\u3001\u305f\u3044\u3066\u3044PC1\u306f\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30d5\u30a1\u30af\u30bf\u30fc\u3001PC\uff12\u4ee5\u964d\u306f\u89e3\u91c8\u3057\u3066\u540d\u524d\u3092\u3064\u3051\u3089\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u3053\u306e\u4f5c\u696d\u306f\u3001\u7d2f\u7a4d\u5bc4\u4e0e\u7387\u304c9\u5272\u8fd1\u304f\u3068\u308c\u308b\u3068\u3053\u308d\u307e\u3067\u3067\u5341\u5206\u3060\u3068\u601d\u3044\u307e\u3059\u3002\uff08\u3055\u3059\u304c\u306b\u5143\u306e\u5909\u6570\u306e\u6570\u3068\u540c\u3058\u6570\u53d6\u308b\u306e\u306f\u975e\u52b9\u7387\uff09<\/p>\n<\/blockquote>\n\n\n\n<p>\u89e3\u91c8\u3092\uff12\u6b21\u5143\u306e\u56f3\u3067\u52a9\u3051\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br>\u7279\u306bPC2\u3068PC3\u306e\u95a2\u4fc2\u6027\u3092\u56f3\u793a\u3067\u304d\u308b\u3068\u7406\u89e3\u304c\u6df1\u307e\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>biplot(kankyopca, choices = c(2, 3))<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001\uff16\u500b\u306e\u8cea\u554f\u304c\u3001PC2\u3001PC3\u306e\u4e0a\u3067\u3069\u306e\u3088\u3046\u306a\u50cd\u304d\u3092\u3057\u3066\u3044\u308b\u304b\u3092\u8a3a\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u632f\u308a\u8fd4\u308a\u3001\u6d3b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u308b\u3002<\/h3>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u3092\u632f\u308a\u8fd4\u308b\u3068\u3001\u305f\u3063\u305f\u306e\uff13\u884c\u3067\u4ee5\u4e0b\u306e\uff13\u70b9\u306b\u304a\u3044\u3066\u3001\u9032\u3093\u3060\u3068\u3044\u3048\u308b\u3002<br>1. \u3069\u306e\u3088\u3046\u306a\u4e3b\u6210\u5206\u304c\u3042\u308b\u304b\u304c\u77e5\u308c\u305f\u3002<br>2. \u305d\u308c\u305e\u308c\u306e\u6210\u5206\u306b\u3088\u3063\u3066\u30016\u554f\u306e\u4f55\uff05\u304c\u8aac\u660e\u3067\u304d\u308b\u304b\u3092\u77e5\u308c\u305f\u3002<br>3. 6\u9805\u76ee\u304b\u3089\u4e0a\u624b\u306b\u91cd\u307f\u4ed8\u3051\u3092\u3057\u305f\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30d5\u30a1\u30af\u30bf\u30fc\u306e\u5f97\u70b9\u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br>\u3000\u3000\uff08\u59a5\u5f53\u6027\u304c\u691c\u8a0e\u3055\u308c\u3066\u3044\u306a\u3044\u304c\u3001\u5358\u7d14\u306b\u52a0\u7b97\u3059\u308b\u3088\u308a\u3082PC\uff11\u306f\u300c\u74b0\u5883\u4e0d\u6e80\u300d\u3092\u3046\u307e\u304f\u8868\u3057\u3066\u3044\u308b\u3060\u308d\u3046\u3068\u671f\u5f85\uff09<br><br>\u3067\u306f\u3001\u6700\u5f8c\u306b\u3001\u3053\u308c\u3092\u3082\u3068\u306eDf\u306b\u623b\u3059\u65b9\u6cd5\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4e3b\u6210\u5206\u5206\u6790\u306f\u4f7f\u3046\u5206\u6790\u3060\u3068\u3044\u3046\u3053\u3068\u3092\u8003\u3048\u308b\u3068\u3001<br>\u305d\u308c\u305e\u308c\u306e\u56de\u7b54\u8005\u306e\u5f97\u70b9\u3092kankyo_PC1\u306e\u3088\u3046\u306a\u5909\u6570\u3068\u3057\u3066\u304a\u8fd4\u3057\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<br><br>\u307e\u305a\u306f\u5404\u56de\u7b54\u8005\u306e\u5f97\u70b9\u3092\u4e0a\u304b\u3089\u9806\u306b\u7b97\u51fa\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pcascore &lt;- kankyopca$x\npcascore &lt;- as.data.frame(pcascore)\npcascore &lt;- pcascore %>%\n  rename_with(~ paste0(\"kankyo_\", .x))<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><code>pcascore &lt;- kankyopca$x<\/code><br>\u2192 PCA\u306e<strong>\u30b9\u30b3\u30a2\u884c\u5217<\/strong>\uff08\u5404\u30b5\u30f3\u30d7\u30eb\u306ePC1, PC2, \u2026\u306e\u5024\uff09\u3092\u53d6\u308a\u51fa\u3059<\/mark>\u3002<\/li>\n\n\n\n<li><code>pcascore &lt;- as.data.frame(pcascore)<\/code><br>\u2192 \u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u5316\uff08\u5217\u540d\u306f\u901a\u5e38 &#8220;PC1&#8221;, &#8220;PC2&#8221;, \u2026\uff09\u3002<\/li>\n\n\n\n<li><code>rename_with(~ paste0(\"kankyo_\", .x))<\/code><br>\u2192 \u3059\u3079\u3066\u306e\u5217\u540d\u306e\u5148\u982d\u306b <code>\"kankyo_\"<\/code> \u3092\u4ed8\u3051\u308b<br>\u4f8b\uff1a<code>PC1<\/code> \u2192 <code>kankyo_PC1<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u305d\u308c\u3092\u305d\u306e\u307e\u307e\u5143\u306eDf\u306b\u5165\u308c\u8fbc\u3080\uff08\u4e01\u5be7\u3067\u306f\u306a\u3044\u304c\uff09\u3002<br>ID\u3068\u304b\u3001\u6b20\u640d\u5024\u51e6\u7406\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u3053\u3068\u3092\u3053\u3053\u3067\u306f\u4e00\u5207\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u884c\u306b\u77db\u76fe\u304c\u3067\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br>\u6295\u5165\u5f8c\u3001Head, Tail\u3067\u306f\u307f\u51fa\u305f\u308a\u3001\u4e0d\u8db3\u304c\u51fa\u3066\u3044\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>naiman_with_pca &lt;- naiman_c12 %>%\n  bind_cols(pcascore)<\/code><\/pre>\n\n\n\n<p><br>\u3053\u3053\u3067\u751f\u6210\u3055\u308c\u305f\u5909\u6570\u306f\u3001\u3053\u308c\u306f\u3001q4s9_1\uff08\u751f\u6d3b\u74b0\u5883\u3078\u306e\u4e0d\u5b89\uff09\u3068\u95a2\u9023\u3059\u308b\u306f\u305a\u2026\u3002\uff08\u306a\u306e\u306b\uff09<br><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306e\u5206\u6790(naiman)\u3067\u306f\u3001\u5909\u6570\u304c340\u500b\u3082\u3042\u308a\u3001\u6b63\u76f4\u3046\u3093\u3056\u308a\u3059\u308b\u307b\u3069\u306e\u8cea\u554f\u6570\u3067\u3059\u3002\u3055\u3089\u306b\u8a00\u3048\u3070\u3001\u69cb\u9020\u5316\u3055\u308c\u3066\u3044\u306a\u3044\uff08\u7406\u8ad6\u7684\u306b\u6574\u7406\u3055\u308c\u3066\u3044\u306a\u3044\uff09\u8cea\u554f\u7fa4\u306a\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306b\u5909\u6570\u3092\u6271\u3048\u3070\u3088\u3044\u306e\u304b\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u3001\u3068\u3044\u3046\u96e3\u3057\u3055 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,29,33],"tags":[],"class_list":["post-1497","post","type-post","status-publish","format-standard","hentry","category-blog","category-dsjugyo","category-mapr"],"_links":{"self":[{"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/posts\/1497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dm-game.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1497"}],"version-history":[{"count":8,"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/posts\/1497\/revisions"}],"predecessor-version":[{"id":1544,"href":"http:\/\/dm-game.net\/index.php?rest_route=\/wp\/v2\/posts\/1497\/revisions\/1544"}],"wp:attachment":[{"href":"http:\/\/dm-game.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dm-game.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1497"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dm-game.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}