{"id":1238,"date":"2023-07-27T04:23:20","date_gmt":"2023-07-27T04:23:20","guid":{"rendered":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/"},"modified":"2023-07-27T04:23:20","modified_gmt":"2023-07-27T04:23:20","slug":"r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/","title":{"rendered":"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u4e3b\u6210\u5206\u5206\u6790 (PCA \u3068\u7565\u3055\u308c\u308b\u3053\u3068\u3082\u591a\u3044) \u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5909\u52d5\u306e\u5927\u90e8\u5206\u3092\u8aac\u660e\u3059\u308b\u4e3b\u6210\u5206 (\u5143\u306e\u4e88\u6e2c\u5b50\u306e\u7dda\u5f62\u7d50\u5408) \u3092\u898b\u3064\u3051\u3088\u3046\u3068\u3059\u308b\u6559\u5e2b<a href=\"https:\/\/statorials.org\/ja\/\u6559\u5e2b\u3042\u308a\u5b66\u7fd2\u3068\u6559\u5e2b\u306a\u3057\u5b66\u7fd2\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u306a\u3057<\/a>\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u3067\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\">PCA \u306e\u76ee\u6a19\u306f\u3001\u5143\u306e\u30c7\u30fc\u30bf \u30bb\u30c3\u30c8\u3088\u308a\u3082\u5c11\u306a\u3044\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf \u30bb\u30c3\u30c8\u5185\u306e\u5909\u52d5\u6027\u306e\u307b\u3068\u3093\u3069\u3092\u8aac\u660e\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>p<\/em>\u500b\u306e\u5909\u6570\u3092\u542b\u3080\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u3064\u3044\u3066\u3001\u5909\u6570\u306e\u5404\u30da\u30a2\u3054\u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u306e\u6563\u5e03\u56f3\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u6563\u5e03\u56f3\u306e\u6570\u306f\u3059\u3050\u306b\u81a8\u5927\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>p \u500b\u306e<\/em>\u4e88\u6e2c\u5b50\u306b\u5bfe\u3057\u3066\u3001p(p-1)\/2 \u500b\u306e\u70b9\u7fa4\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3057\u305f\u304c\u3063\u3066\u3001p = 15 \u306e\u4e88\u6e2c\u5b50\u3092\u6301\u3064\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5834\u5408\u3001105 \u500b\u306e\u7570\u306a\u308b\u6563\u5e03\u56f3\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5e78\u3044\u306a\u3053\u3068\u306b\u3001PCA \u306f\u3001\u30c7\u30fc\u30bf\u5185\u306e\u5909\u52d5\u3092\u3067\u304d\u308b\u3060\u3051\u591a\u304f\u6355\u6349\u3059\u308b\u30c7\u30fc\u30bf \u30bb\u30c3\u30c8\u306e\u4f4e\u6b21\u5143\u8868\u73fe\u3092\u898b\u3064\u3051\u308b\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u308f\u305a\u304b 2 \u6b21\u5143\u3067\u307b\u3068\u3093\u3069\u306e\u5909\u52d5\u3092\u6349\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304b\u3089\u306e\u3059\u3079\u3066\u306e\u89b3\u6e2c\u5024\u3092\u5358\u7d14\u306a\u6563\u5e03\u56f3\u306b\u6295\u5f71\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e3b\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u898b\u3064\u3051\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>p<\/em>\u500b\u306e<sub>\u4e88\u6e2c\u5b50<\/sub><sub>\u3092\u6301\u3064<\/sub><sub>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<\/sub><sub>\u304c<\/sub><sub>\u4e0e\u3048\u3089\u308c\u305f\u3068\u3057\u307e\u3059<\/sub><em>:<\/em> <em>_<\/em><\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><sub>Z<\/sub> <sub>m<\/sub> <sub>=<\/sub> <sub>\u03a3\u03a6<\/sub> <sub>jm<\/sub> <sub>_<\/sub><\/span><\/li>\n<li> <span style=\"color: #000000;\">Z <sub>1<\/sub>\u306f\u3001\u53ef\u80fd\u306a\u9650\u308a\u591a\u304f\u306e\u5206\u6563\u3092\u6355\u6349\u3059\u308b\u4e88\u6e2c\u5b50\u306e\u7dda\u5f62\u7d50\u5408\u3067\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\">Z <sub>2 \u306f<\/sub>\u3001Z <sub>1<\/sub>\u3068<em>\u76f4\u4ea4\u3057\u3066<\/em>\u3044\u308b (\u3064\u307e\u308a\u3001\u7121\u76f8\u95a2\u3067\u3042\u308b) \u4e00\u65b9\u3067\u3001\u6700\u3082\u591a\u304f\u306e\u5206\u6563\u3092\u6355\u6349\u3059\u308b\u4e88\u6e2c\u5b50\u306e\u6b21\u306e\u7dda\u5f62\u7d50\u5408\u3067\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\">Z <sub>3<\/sub>\u306f\u3001Z <sub>2<\/sub>\u306b\u76f4\u4ea4\u3057\u306a\u304c\u3089\u6700\u5927\u306e\u5206\u6563\u3092\u6355\u6349\u3059\u308b\u4e88\u6e2c\u5b50\u306e\u6b21\u306e\u7dda\u5f62\u7d50\u5408\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u7b49\u3005\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u5b9f\u969b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u3092\u4f7f\u7528\u3057\u3066\u3001\u5143\u306e\u4e88\u6e2c\u5b50\u306e\u7dda\u5f62\u7d50\u5408\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong>\u5e73\u5747\u304c 0\u3001\u6a19\u6e96\u504f\u5dee\u304c 1 \u306b\u306a\u308b\u3088\u3046\u306b\u5404\u5909\u6570\u3092\u30b9\u30b1\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong>\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3055\u308c\u305f\u5909\u6570\u306e\u5171\u5206\u6563\u884c\u5217\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong>\u5171\u5206\u6563\u884c\u5217\u306e\u56fa\u6709\u5024\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7dda\u5f62\u4ee3\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6700\u5927\u306e\u56fa\u6709\u5024\u306b\u5bfe\u5fdc\u3059\u308b\u56fa\u6709\u30d9\u30af\u30c8\u30eb\u304c\u7b2c 1 \u4e3b\u6210\u5206\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u8a00\u3044\u63db\u3048\u308c\u3070\u3001\u3053\u306e\u7279\u5b9a\u306e\u4e88\u6e2c\u5b50\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6700\u5927\u306e\u5206\u6563\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\">2 \u756a\u76ee\u306b\u5927\u304d\u3044\u56fa\u6709\u5024\u306b\u5bfe\u5fdc\u3059\u308b\u56fa\u6709\u30d9\u30af\u30c8\u30eb\u304c 2 \u756a\u76ee\u306e\u4e3b\u6210\u5206\u3068\u306a\u308a\u3001\u4ee5\u4e0b\u540c\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u6bb5\u968e\u7684\u306a\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 1: \u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u307e\u305a\u3001 <strong>Tidyverse<\/strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u8996\u899a\u5316\u3068\u64cd\u4f5c\u306b\u5f79\u7acb\u3064\u3044\u304f\u3064\u304b\u306e\u95a2\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\">library<\/span> (tidyverse)\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u3001R \u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b<em>USArrests<\/em>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f\u30011973 \u5e74\u306e\u7c73\u56fd\u5404\u5dde\u306e\u4f4f\u6c11 100,000 \u4eba\u3042\u305f\u308a\u306e<em>\u6bba\u4eba<\/em>\u3001<em>\u66b4\u884c<\/em>\u3001\u304a\u3088\u3073<em>\u5f37\u59e6<\/em>\u306e\u902e\u6355\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u306b\u306f\u3001\u90fd\u5e02\u90e8\u306b\u4f4f\u3080\u5404\u5dde\u306e\u4eba\u53e3\u306e\u5272\u5408\u3001 <em>UrbanPop<\/em>\u3082\u542b\u307e\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6700\u521d\u306e\u884c\u3092\u30ed\u30fc\u30c9\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\"><span style=\"color: #008080;\">#load data<\/span>\n<span style=\"color: #000000;\">data<\/span><\/span> <span style=\"color: #000000;\">(\"USArrests\")<\/span>\n\n<span style=\"color: #008080;\">#view first six rows of data<\/span>\nhead(USArrests)\n\n           Murder Assault UrbanPop Rape\nAlabama 13.2 236 58 21.2\nAlaska 10.0 263 48 44.5\nArizona 8.1 294 80 31.0\nArkansas 8.8 190 50 19.5\nCalifornia 9.0 276 91 40.6\nColorado 7.9 204 78 38.7\n<\/strong><\/pre>\n<h3><strong>\u30b9\u30c6\u30c3\u30d7 2: \u4e3b\u6210\u5206\u3092\u8a08\u7b97\u3059\u308b<\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001R \u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570<strong>prcomp()<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u4e3b\u6210\u5206\u3092\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e3b\u6210\u5206\u3092\u8a08\u7b97\u3059\u308b\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5404\u5909\u6570\u304c\u5e73\u5747 0\u3001\u6a19\u6e96\u504f\u5dee 1 \u306b\u306a\u308b\u3088\u3046\u306b\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u5fc5\u305a<strong>scale = TRUE<\/strong>\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305f\u3001R \u306e\u56fa\u6709\u30d9\u30af\u30c8\u30eb\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8ca0\u306e\u65b9\u5411\u3092\u5411\u3044\u3066\u3044\u308b\u305f\u3081\u3001-1 \u3092\u4e57\u7b97\u3057\u3066\u7b26\u53f7\u3092\u53cd\u8ee2\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#calculate main components\n<\/span>results &lt;- prcomp(USArrests, scale = <span style=\"color: #008000;\">TRUE<\/span> )\n\n<span style=\"color: #008080;\">#reverse the signs\n<\/span>results$rotation &lt;- -1*results$rotation\n\n<span style=\"color: #008080;\">#display main components\n<\/span>results$rotation\n\n               PC1 PC2 PC3 PC4\nMurder 0.5358995 -0.4181809 0.3412327 -0.64922780\nAssault 0.5831836 -0.1879856 0.2681484 0.74340748\nUrbanPop 0.2781909 0.8728062 0.3780158 -0.13387773\nRape 0.5434321 0.1673186 -0.8177779 -0.08902432<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u7b2c 1 \u4e3b\u6210\u5206 (PC1) \u306f\u6bba\u4eba\u3001\u66b4\u884c\u3001\u5f37\u59e6\u306b\u95a2\u3057\u3066\u9ad8\u3044\u5024\u3092\u793a\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u4e3b\u6210\u5206\u304c\u3053\u308c\u3089\u306e\u5909\u6570\u306e\u6700\u5927\u306e\u5909\u52d5\u3092\u8868\u3059\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305f\u3001\u7b2c 2 \u4e3b\u6210\u5206 (PC2) \u304c UrbanPop \u306b\u5bfe\u3057\u3066\u9ad8\u3044\u5024\u3092\u793a\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u3053\u306e\u4e3b\u6210\u5206\u304c\u90fd\u5e02\u4eba\u53e3\u3092\u5f37\u8abf\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5404\u72b6\u614b\u306e\u4e3b\u6210\u5206\u30b9\u30b3\u30a2\u306f<strong>results$x<\/strong>\u306b\u683c\u7d0d\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u3053\u308c\u3089\u306e\u30b9\u30b3\u30a2\u306b -1 \u3092\u4e57\u7b97\u3057\u3066\u3001\u7b26\u53f7\u3092\u53cd\u8ee2\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#reverse the signs of the scores\n<\/span>results$x &lt;- -1*results$x\n\n<span style=\"color: #008080;\">#display the first six scores\n<span style=\"color: #000000;\">head(results$x)<\/span>\n<\/span><span style=\"color: #000000;\">\n                  PC1 PC2 PC3 PC4\nAlabama 0.9756604 -1.1220012 0.43980366 -0.154696581\nAlaska 1.9305379 -1.0624269 -2.01950027 0.434175454\nArizona 1.7454429 0.7384595 -0.05423025 0.826264240\nArkansas -0.1399989 -1.1085423 -0.11342217 0.180973554\nCalifornia 2.4986128 1.5274267 -0.59254100 0.338559240\nColorado 1.4993407 0.9776297 -1.08400162 -0.001450164\n<\/span><\/strong><\/pre>\n<h3><strong>\u30b9\u30c6\u30c3\u30d7 3: \u30d0\u30a4\u30d7\u30ed\u30c3\u30c8\u3067\u7d50\u679c\u3092\u8996\u899a\u5316\u3059\u308b<\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u6b21\u306b\u3001<strong>\u30d0\u30a4\u30d7\u30ed\u30c3\u30c8<\/strong>\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5404\u89b3\u6e2c\u5024\u3092\u3001\u6700\u521d\u3068 2 \u756a\u76ee\u306e\u4e3b\u6210\u5206\u3092\u8ef8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u6563\u5e03\u56f3\u306b\u6295\u5f71\u3059\u308b\u30d7\u30ed\u30c3\u30c8\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u30b9\u30b1\u30fc\u30eb = 0<\/strong>\u306b\u3059\u308b\u3068\u3001\u30d7\u30ed\u30c3\u30c8\u5185\u306e\u77e2\u5370\u304c\u8377\u91cd\u3092\u8868\u3059\u3088\u3046\u306b\u30b9\u30b1\u30fc\u30eb\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>biplot(results, scale = <span style=\"color: #008000;\">0<\/span> )\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12281 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pca1.png\" alt=\"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790\u306e\u30d0\u30a4\u30d7\u30ed\u30c3\u30c8\" width=\"465\" height=\"464\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u30d7\u30ed\u30c3\u30c8\u304b\u3089\u300150 \u306e\u5404\u72b6\u614b\u304c\u5358\u7d14\u306a 2 \u6b21\u5143\u7a7a\u9593\u3067\u8868\u73fe\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30b0\u30e9\u30d5\u4e0a\u3067\u4e92\u3044\u306b\u8fd1\u3044\u72b6\u614b\u306f\u3001\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5909\u6570\u306b\u95a2\u3057\u3066\u985e\u4f3c\u3057\u305f\u30c7\u30fc\u30bf \u30d1\u30bf\u30fc\u30f3\u3092\u6301\u3061\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305f\u3001\u4e00\u90e8\u306e\u5dde\u304c\u4ed6\u306e\u5dde\u3088\u308a\u3082\u7279\u5b9a\u306e\u72af\u7f6a\u3068\u3088\u308a\u5f37\u304f\u95a2\u9023\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30b8\u30e7\u30fc\u30b8\u30a2\u5dde\u306f\u3001\u30d7\u30ed\u30c3\u30c8\u5185\u306e<em>\u6bba\u4eba<\/em>\u5909\u6570\u306b\u6700\u3082\u8fd1\u3044\u5dde\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u6bba\u4eba\u7387\u304c\u6700\u3082\u9ad8\u3044\u5dde\u3092\u898b\u308b\u3068\u3001\u30b8\u30e7\u30fc\u30b8\u30a2\u5dde\u304c\u5b9f\u969b\u306b\u30ea\u30b9\u30c8\u306e\u30c8\u30c3\u30d7\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#display states with highest murder rates in original dataset<\/span>\nhead(USArrests[ <span style=\"color: #3366ff;\">order<\/span> (-USArrests$Murder),])\n\n               Murder Assault UrbanPop Rape\nGeorgia 17.4 211 60 25.8\nMississippi 16.1 259 44 17.1\nFlorida 15.4 335 80 31.9\nLouisiana 15.4 249 66 22.2\nSouth Carolina 14.4 279 48 22.5\nAlabama 13.2 236 58 21.2<\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 4: \u5404\u4e3b\u6210\u5206\u306b\u3088\u3063\u3066\u8aac\u660e\u3055\u308c\u308b\u5206\u6563\u3092\u898b\u3064\u3051\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5404\u4e3b\u6210\u5206\u306b\u3088\u3063\u3066\u8aac\u660e\u3055\u308c\u308b\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5408\u8a08\u5206\u6563\u3092\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#calculate total variance explained by each principal component\n<\/span>results$sdev^2 \/ <span style=\"color: #3366ff;\">sum<\/span> (results$sdev^2)\n\n[1] 0.62006039 0.24744129 0.08914080 0.04335752\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u7d50\u679c\u304b\u3089\u3001\u6b21\u306e\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u6700\u521d\u306e\u4e3b\u6210\u5206\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5408\u8a08\u5206\u6563\u306e<strong>62%<\/strong>\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\">2 \u756a\u76ee\u306e\u4e3b\u6210\u5206\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5408\u8a08\u5206\u6563\u306e<strong>24.7%<\/strong>\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\">3 \u756a\u76ee\u306e\u4e3b\u6210\u5206\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5408\u8a08\u5206\u6563\u306e<strong>8.9%<\/strong>\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\">4 \u756a\u76ee\u306e\u4e3b\u6210\u5206\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5408\u8a08\u5206\u6563\u306e<strong>4.3%<\/strong>\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u3057\u305f\u304c\u3063\u3066\u3001\u6700\u521d\u306e 2 \u3064\u306e\u4e3b\u6210\u5206\u306f\u3001\u30c7\u30fc\u30bf\u306e\u5408\u8a08\u5206\u6563\u306e\u5927\u90e8\u5206\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u524d\u306e\u30d0\u30a4\u30d7\u30ed\u30c3\u30c8\u3067\u306f\u5143\u306e\u30c7\u30fc\u30bf\u306e\u5404\u89b3\u6e2c\u5024\u304c\u6700\u521d\u306e 2 \u3064\u306e\u4e3b\u6210\u5206\u306e\u307f\u3092\u8003\u616e\u3057\u305f\u6563\u5e03\u56f3\u306b\u6295\u5f71\u3055\u308c\u3066\u3044\u305f\u305f\u3081\u3001\u3053\u308c\u306f\u826f\u3044\u5146\u5019\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3057\u305f\u304c\u3063\u3066\u3001\u30d0\u30a4\u30d7\u30ed\u30c3\u30c8\u5185\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u8abf\u3079\u3066\u3001\u4e92\u3044\u306b\u985e\u4f3c\u3057\u305f\u72b6\u614b\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u306f\u6709\u52b9\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305f\u3001<strong>\u30b9\u30af\u30ea\u30fc \u30d7\u30ed\u30c3\u30c8<\/strong>(\u5404\u4e3b\u6210\u5206\u306b\u3088\u3063\u3066\u8aac\u660e\u3055\u308c\u308b\u5408\u8a08\u5206\u6563\u3092\u8868\u793a\u3059\u308b\u30b0\u30e9\u30d5) \u3092\u4f5c\u6210\u3057\u3066\u3001PCA \u7d50\u679c\u3092\u8996\u899a\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#calculate total variance explained by each principal component\n<\/span>var_explained = results$sdev^2 \/ <span style=\"color: #3366ff;\">sum<\/span> (results$sdev^2)\n\n<span style=\"color: #008080;\">#create scree plot\n<\/span>qplot(c(1:4), var_explained) + \n  geom_line() + \n  xlab(\" <span style=\"color: #008000;\">Principal Component<\/span> \") + \n  ylab(\" <span style=\"color: #008000;\">Variance Explained<\/span> \") +\n  ggtitle(\" <span style=\"color: #008000;\">Scree Plot<\/span> \") +\n  ylim(0, 1)<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12282 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pca2.png\" alt=\"R\u5b57\u30ac\u30ec\u5730\u5f62\" width=\"427\" height=\"428\" srcset=\"\" sizes=\"auto, \"><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u4e3b\u6210\u5206\u5206\u6790\u306e\u5b9f\u8df5<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5b9f\u969b\u306b\u306f\u3001PCA \u306f\u6b21\u306e 2 \u3064\u306e\u7406\u7531\u3067\u6700\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1. \u63a2\u7d22\u7684\u30c7\u30fc\u30bf\u5206\u6790<\/strong>\u2013 \u521d\u3081\u3066\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u63a2\u7d22\u3057\u3001\u30c7\u30fc\u30bf\u5185\u306e\u3069\u306e\u89b3\u6e2c\u5024\u304c\u4e92\u3044\u306b\u6700\u3082\u985e\u4f3c\u3057\u3066\u3044\u308b\u304b\u3092\u7406\u89e3\u3057\u305f\u3044\u5834\u5408\u306b\u3001PCA \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2. \u4e3b\u6210\u5206\u56de\u5e30<\/strong>\u2013 PCA \u3092\u4f7f\u7528\u3057\u3066\u4e3b\u6210\u5206\u3092\u8a08\u7b97\u3057\u3001 <a href=\"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u4e3b\u6210\u5206\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e3b\u6210\u5206\u56de\u5e30<\/a>\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u56de\u5e30\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u4e88\u6e2c\u5909\u6570\u9593\u306b<a href=\"https:\/\/statorials.org\/ja\/\u591a\u91cd\u5171\u7dda\u6027\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u591a\u91cd\u5171\u7dda\u6027<\/a>\u304c\u3042\u308b\u5834\u5408\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u4f7f\u7528\u3055\u308c\u308b\u5b8c\u5168\u306a R \u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/Statorials\/R-Guides\/blob\/main\/pca.R\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053\u306b<\/a>\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u6210\u5206\u5206\u6790 (PCA \u3068\u7565\u3055\u308c\u308b\u3053\u3068\u3082\u591a\u3044) \u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5909\u52d5\u306e\u5927\u90e8\u5206\u3092\u8aac\u660e\u3059\u308b\u4e3b\u6210\u5206 (\u5143\u306e\u4e88\u6e2c\u5b50\u306e\u7dda\u5f62\u7d50\u5408) \u3092\u898b\u3064\u3051\u3088\u3046\u3068\u3059\u308b\u6559\u5e2b\u306a\u3057\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u3067\u3059\u3002 PCA \u306e\u76ee\u6a19\u306f\u3001\u5143\u306e\u30c7\u30fc\u30bf \u30bb\u30c3\u30c8\u3088\u308a\u3082\u5c11\u306a\u3044\u5909\u6570 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1238","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\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\/ja\/r-\u3066\u3099\u306e\u4e3b\u6210\u5206\u5206\u6790\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u4e3b\u6210\u5206\u5206\u6790\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T04:23:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pca1.png\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/\",\"url\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/\",\"name\":\"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-27T04:23:20+00:00\",\"dateModified\":\"2023-07-27T04:23:20+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","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\/ja\/r-\u3066\u3099\u306e\u4e3b\u6210\u5206\u5206\u6790\/","og_locale":"ja_JP","og_type":"article","og_title":"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u4e3b\u6210\u5206\u5206\u6790\/","og_site_name":"Statorials","article_published_time":"2023-07-27T04:23:20+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pca1.png"}],"author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/","url":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/","name":"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-27T04:23:20+00:00","dateModified":"2023-07-27T04:23:20+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u4e3b\u6210\u5206\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e4%b8%bb%e6%88%90%e5%88%86%e5%88%86%e6%9e%90\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"R \u3067\u306e\u4e3b\u6210\u5206\u5206\u6790: \u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=1238"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}