{"id":1197,"date":"2023-07-27T07:56:18","date_gmt":"2023-07-27T07:56:18","guid":{"rendered":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/"},"modified":"2023-07-27T07:56:18","modified_gmt":"2023-07-27T07:56:18","slug":"r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/","title":{"rendered":"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/ja\/\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30e9\u30c3\u30bd\u56de\u5e30\u306f<\/a>\u3001\u30c7\u30fc\u30bf\u306b<a href=\"https:\/\/statorials.org\/ja\/\u591a\u91cd\u5171\u7dda\u6027\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u591a\u91cd\u5171\u7dda\u6027\u304c<\/a>\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u8fd1\u4f3c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u6700\u5c0f\u4e8c\u4e57\u56de\u5e30\u306f\u3001\u6b8b\u5dee\u4e8c\u4e57\u548c (RSS) \u3092\u6700\u5c0f\u5316\u3059\u308b\u4fc2\u6570\u63a8\u5b9a\u5024\u3092\u898b\u3064\u3051\u3088\u3046\u3068\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>RSS = \u03a3(y <sub>i<\/sub> \u2013 \u0177 <sub>i<\/sub> )2<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u91d1\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>\u03a3<\/strong> : \u548c\u3092\u610f\u5473\u3059\u308b\u30ae\u30ea\u30b7\u30e3\u8a9e\u306e<em>\u8a18\u53f7<\/em><\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>y <sub>i<\/sub><\/strong> : <sup>i \u756a\u76ee\u306e<\/sup>\u89b3\u6e2c\u5024\u306e\u5b9f\u969b\u306e\u5fdc\u7b54\u5024<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>\u0177 <sub>i<\/sub><\/strong> : \u91cd\u56de\u5e30\u30e2\u30c7\u30eb\u306b\u57fa\u3065\u304f\u4e88\u6e2c\u5fdc\u7b54\u5024<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u9006\u306b\u3001\u306a\u3052\u306a\u308f\u56de\u5e30\u3067\u306f\u3001\u4ee5\u4e0b\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u3088\u3046\u3068\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>RSS + \u03bb\u03a3|\u03b2 <sub>j<\/sub> |<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u3053\u3067\u3001 <em>j<\/em>\u306f 1 \u304b\u3089<em>p \u500b\u306e<\/em>\u4e88\u6e2c\u5b50\u5909\u6570\u3067\u3042\u308a\u3001\u03bb \u2265 0 \u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u65b9\u7a0b\u5f0f\u306e\u3053\u306e 2 \u756a\u76ee\u306e\u9805\u306f\u3001<em>\u64a4\u9000\u30da\u30ca\u30eb\u30c6\u30a3<\/em>\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u30e9\u30c3\u30bd\u56de\u5e30\u3067\u306f\u3001\u53ef\u80fd\u306a\u9650\u308a\u6700\u5c0f\u306e MSE (\u5e73\u5747\u4e8c\u4e57\u8aa4\u5dee) \u30c6\u30b9\u30c8\u3092\u751f\u6210\u3059\u308b \u03bb \u306e\u5024\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u306a\u3052\u306a\u308f\u56de\u5e30\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;\">\u3053\u306e\u4f8b\u3067\u306f\u3001 <strong>mtcars<\/strong>\u3068\u3044\u3046 R \u306e\u7d44\u307f\u8fbc\u307f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5fdc\u7b54\u5909\u6570\u3068\u3057\u3066<strong>hp \u3092<\/strong>\u4f7f\u7528\u3057\u3001\u4e88\u6e2c\u5909\u6570\u3068\u3057\u3066\u6b21\u306e\u5909\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">mpg<\/span><\/li>\n<li><span style=\"color: #000000;\">\u91cd\u3055<\/span><\/li>\n<li><span style=\"color: #000000;\">\u305f\u308f\u3054\u3068<\/span><\/li>\n<li><span style=\"color: #000000;\">qsec<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u30e9\u30c3\u30bd\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001 <strong>glmnet<\/strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u3001 <a href=\"https:\/\/statorials.org\/ja\/\u5909\u6570\u306e\u8aac\u660e\u5fdc\u7b54\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5fdc\u7b54\u5909\u6570\u304c<\/a>\u30d9\u30af\u30c8\u30eb\u3067\u3042\u308b\u3053\u3068\u3001\u304a\u3088\u3073\u4e88\u6e2c\u5b50\u5909\u6570\u306e\u30bb\u30c3\u30c8\u304c<strong>data.matrix<\/strong>\u30af\u30e9\u30b9\u306e\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u3092\u5b9a\u7fa9\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define response variable<\/span>\ny &lt;- mtcars$hp\n\n<span style=\"color: #008080;\">#define matrix of predictor variables\n<\/span>x &lt;- data.matrix(mtcars[, c('mpg', 'wt', 'drat', 'qsec')])\n<\/strong><\/span><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 2:\u306a\u3052\u306a\u308f\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u5f53\u3066\u306f\u3081\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6b21\u306b\u3001 <strong>glmnet()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u306a\u3052\u306a\u308f\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u8fd1\u4f3c\u3057\u3001 <strong>alpha=1<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30a2\u30eb\u30d5\u30a1\u3092 0 \u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f<a href=\"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u5c71\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30ea\u30c3\u30b8\u56de\u5e30\u3092<\/a>\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u540c\u7b49\u3067\u3042\u308a\u3001\u30a2\u30eb\u30d5\u30a1\u3092 0 \u304b\u3089 1 \u307e\u3067\u306e\u5024\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u5f3e\u6027\u30cd\u30c3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u540c\u7b49\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span> <span style=\"color: #000000;\"><strong>&nbsp;<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u30e9\u30e0\u30c0\u306b\u3069\u306e\u5024\u3092\u4f7f\u7528\u3059\u308b\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001<a href=\"https:\/\/statorials.org\/ja\/k-\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\/\" target=\"_blank\" rel=\"noopener noreferrer\">k \u5206\u5272\u4ea4\u5dee\u691c\u8a3c<\/a>\u3092\u5b9f\u884c\u3057\u3001\u6700\u5c0f\u306e\u691c\u5b9a\u5e73\u5747\u4e8c\u4e57\u8aa4\u5dee (MSE) \u3092\u751f\u6210\u3059\u308b\u30e9\u30e0\u30c0\u5024\u3092\u7279\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>cv.glmnet()<\/strong>\u95a2\u6570\u306f\u3001k = 10 \u56de\u3092\u4f7f\u7528\u3057\u3066 k \u5206\u5272\u76f8\u4e92\u691c\u8a3c\u3092\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #993300;\">library<\/span> (glmnet)<\/span>\n\n#perform k-fold cross-validation to find optimal lambda value\n<\/span>cv_model &lt;- cv. <span style=\"color: #3366ff;\">glmnet<\/span> (x, y, alpha = <span style=\"color: #008000;\">1<\/span> )\n\n<span style=\"color: #008080;\">#find optimal lambda value that minimizes test MSE\n<\/span>best_lambda &lt;- cv_model$ <span style=\"color: #3366ff;\">lambda<\/span> . <span style=\"color: #3366ff;\">min<\/span>\nbest_lambda\n\n[1] 5.616345\n\n<span style=\"color: #008080;\">#produce plot of test MSE by lambda value<\/span>\nplot(cv_model) \n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11896 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/lassor1.png\" alt=\"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30\u306b\u5bfe\u3059\u308b MSE \u306e\u30c6\u30b9\u30c8\" width=\"419\" height=\"407\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">MSE \u30c6\u30b9\u30c8\u3092\u6700\u5c0f\u5316\u3059\u308b\u30e9\u30e0\u30c0\u5024\u306f<strong>5.616345<\/strong>\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 3: \u6700\u7d42\u30e2\u30c7\u30eb\u3092\u5206\u6790\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6700\u5f8c\u306b\u3001\u6700\u9069\u306a\u30e9\u30e0\u30c0\u5024\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u6700\u7d42\u30e2\u30c7\u30eb\u3092\u5206\u6790\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30e2\u30c7\u30eb\u306e\u4fc2\u6570\u63a8\u5b9a\u5024\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#find coefficients of best model\n<\/span>best_model &lt;- glmnet(x, y, alpha = <span style=\"color: #008000;\">1<\/span> , lambda = best_lambda)\ncoef(best_model)\n\n5 x 1 sparse Matrix of class \"dgCMatrix\"\n                   s0\n(Intercept) 484.20742\nmpg -2.95796\nwt 21.37988\ndrat.      \nqsec -19.43425<\/strong><\/span><\/pre>\n<p><span style=\"color: #000000;\">\u30e9\u30c3\u30bd\u56de\u5e30\u306b\u3088\u308a\u4fc2\u6570\u304c\u30bc\u30ed\u306b\u306a\u3063\u305f\u305f\u3081\u3001 <strong>drat<\/strong>\u4e88\u6e2c\u5b50\u306e\u4fc2\u6570\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u5f7c\u304c\u5341\u5206\u306a\u5f71\u97ff\u529b\u3092\u6301\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30e2\u30c7\u30eb\u304b\u3089\u5b8c\u5168\u306b\u524a\u9664\u3055\u308c\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u304c<a href=\"https:\/\/statorials.org\/ja\/\u5c3e\u6839\u306e\u5f8c\u9000\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30ea\u30c3\u30b8\u56de\u5e30<\/a>\u3068\u306a\u3052<a href=\"https:\/\/statorials.org\/ja\/\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u306a\u308f\u56de\u5e30<\/a>\u306e\u91cd\u8981\u306a\u9055\u3044\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30ea\u30c3\u30b8\u56de\u5e30\u3067\u306f\u3059\u3079\u3066\u306e\u4fc2\u6570\u304c\u30bc\u30ed<em>\u306b\u5411\u304b\u3063\u3066<\/em>\u6e1b\u5c11\u3057\u307e\u3059\u304c\u3001\u30e9\u30c3\u30bd\u56de\u5e30\u3067\u306f\u4fc2\u6570\u304c<em>\u5b8c\u5168\u306b<\/em>\u30bc\u30ed\u306b\u306a\u308b\u3053\u3068\u3067\u30e2\u30c7\u30eb\u304b\u3089\u4e88\u6e2c\u5b50\u304c\u524a\u9664\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6700\u7d42\u7684\u306a\u306a\u3052\u306a\u308f\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u89b3\u6e2c\u5024\u306b\u3064\u3044\u3066\u306e\u4e88\u6e2c\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u5c5e\u6027\u3092\u6301\u3064\u65b0\u8eca\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">mpg: 24<\/span><\/li>\n<li><span style=\"color: #000000;\">\u91cd\u91cf: 2.5<\/span><\/li>\n<li><span style=\"color: #000000;\">\u4fa1\u683c: 3.5<\/span><\/li>\n<li> <span style=\"color: #000000;\">qsec: 18.5<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u9069\u5408\u3057\u305f\u306a\u3052\u306a\u308f\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u65b0\u3057\u3044\u89b3\u6e2c\u5024\u306e<em>hp<\/em>\u5024\u3092\u4e88\u6e2c\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define new observation\n<\/span>new = matrix(c(24, 2.5, 3.5, 18.5), nrow= <span style=\"color: #008000;\">1<\/span> , ncol= <span style=\"color: #008000;\">4<\/span> ) \n\n<span style=\"color: #008080;\">#use lasso regression model to predict response value\n<\/span>predict(best_model, s = best_lambda, newx = new)\n\n[1,] 109.0842<\/strong><\/span><\/pre>\n<p><span style=\"color: #000000;\">\u5165\u529b\u3055\u308c\u305f\u5024\u306b\u57fa\u3065\u3044\u3066\u3001\u30e2\u30c7\u30eb\u306f\u3053\u306e\u8eca\u306e<em>\u99ac\u529b<\/em>\u5024\u304c<strong>109.0842<\/strong>\u3067\u3042\u308b\u3068\u4e88\u6e2c\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6700\u5f8c\u306b\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b <a href=\"https:\/\/statorials.org\/ja\/\u826f\u597d\u306ar\u4e8c\u4e57\u5024\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30e2\u30c7\u30eb\u306e R \u4e8c\u4e57<\/a>\u3092\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#use fitted best model to make predictions\n<\/span>y_predicted &lt;- <span style=\"color: #3366ff;\">predict<\/span> (best_model, s = best_lambda, newx = x)\n\n<span style=\"color: #008080;\">#find OHS and SSE<\/span>\nsst &lt;- <span style=\"color: #3366ff;\">sum<\/span> ((y - <span style=\"color: #3366ff;\">mean<\/span> (y))^2)\nsse &lt;- <span style=\"color: #3366ff;\">sum<\/span> ((y_predicted - y)^2)\n\n<span style=\"color: #008080;\">#find R-Squared\n<\/span>rsq &lt;- 1 - sse\/sst\nrsq\n\n[1] 0.8047064\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">R \u306e 2 \u4e57\u306f<strong>0.8047064<\/strong>\u3068\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u6700\u826f\u306e\u30e2\u30c7\u30eb\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30c7\u30fc\u30bf\u306e\u5fdc\u7b54\u5024\u306e\u5909\u52d5\u306e<strong>80.47%<\/strong>\u3092\u8aac\u660e\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u5b8c\u5168\u306a R \u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/Statorials\/R-Guides\/blob\/main\/lasso_regression.R\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053\u3067<\/a>\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30c3\u30bd\u56de\u5e30\u306f\u3001\u30c7\u30fc\u30bf\u306b\u591a\u91cd\u5171\u7dda\u6027\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u8fd1\u4f3c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u6700\u5c0f\u4e8c\u4e57\u56de\u5e30\u306f\u3001\u6b8b\u5dee\u4e8c\u4e57\u548c (RSS) \u3092\u6700\u5c0f\u5316\u3059\u308b\u4fc2\u6570\u63a8\u5b9a\u5024\u3092\u898b\u3064\u3051\u3088\u3046\u3068\u3057\u307e\u3059\u3002 RSS = \u03a3(y i  [&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-1197","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\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\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\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T07:56:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/lassor1.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%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/\",\"url\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/\",\"name\":\"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-27T07:56:18+00:00\",\"dateModified\":\"2023-07-27T07:56:18+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\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\"}]},{\"@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\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\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\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/","og_locale":"ja_JP","og_type":"article","og_title":"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/r-\u3066\u3099\u306e\u306a\u3051\u3099\u306a\u308f\u56de\u5e30\/","og_site_name":"Statorials","article_published_time":"2023-07-27T07:56:18+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/lassor1.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%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/","url":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/","name":"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-27T07:56:18+00:00","dateModified":"2023-07-27T07:56:18+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\u306a\u3052\u306a\u308f\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/r-%e3%81%a6%e3%82%99%e3%81%ae%e3%81%aa%e3%81%91%e3%82%99%e3%81%aa%e3%82%8f%e5%9b%9e%e5%b8%b0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"R \u3067\u306e\u306a\u3052\u306a\u308f\u56de\u5e30 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"}]},{"@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\/1197","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=1197"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1197\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=1197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=1197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=1197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}