{"id":17556,"date":"2023-07-27T06:00:00","date_gmt":"2023-07-26T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=17556"},"modified":"2023-03-11T12:02:02","modified_gmt":"2023-03-11T03:02:02","slug":"%e7%86%b1%e4%b8%ad%e7%97%87%e6%90%ac%e9%80%81%e4%ba%ba%e5%93%a1%e6%95%b0%e3%82%92%e3%83%9e%e3%83%ab%e3%82%b3%e3%83%95%e9%80%a3%e9%8e%96%e3%83%a2%e3%83%b3%e3%83%86%e3%82%ab%e3%83%ab%e3%83%ad%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=17556","title":{"rendered":"\u71b1\u4e2d\u75c7\u642c\u9001\u4eba\u54e1\u6570\u3092\u30de\u30eb\u30b3\u30d5\u9023\u9396\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u30d9\u30a4\u30ba\u63a8\u5b9a\u3059\u308b"},"content":{"rendered":"\n<p>\u3000\u7a7a\u9593\u7d71\u8a08\u3092\u52c9\u5f37\u3057\u3066\u3044\u308b\uff0e\u7a7a\u9593\u76f8\u95a2\u3092\u8003\u616e\u3057\u305f\u4e00\u822c\u5316\u7dda\u5f62\u30e2\u30c7\u30eb\u304c\u5730\u57df\u3054\u3068\u306e\u30ab\u30a6\u30f3\u30c8\u30c7\u30fc\u30bf\u3084\u30d0\u30a4\u30ca\u30ea\u30fc\u30c7\u30fc\u30bf\u3092\u30e2\u30c7\u30eb\u5316\u3059\u308b\u305f\u3081\u306b\u63d0\u6848\u3055\u308c\u3066\u3044\u308b\uff0e\u4eca\u56de\u306fCAR\u30e2\u30c7\u30eb\u3092\u6271\u3046\uff0eCARBayes\u3067\u306f\u7a7a\u9593\u76f8\u95a2\u3092\u8003\u616e\u3057\u306a\u3044\u901a\u5e38\u306e\u30dd\u30a2\u30bd\u30f3\u56de\u5e30\u30e2\u30c7\u30eb\u3082\u6271\u3048\u305f\u305f\u3081\u5099\u5fd8\u9332\u3068\u3057\u3066\u516c\u958b\u3059\u308b\uff0e<\/p>\n<p><!--more--><\/p>\n<h2>CARBayes\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3000CARBayes\u304c\u672a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3042\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff0e<\/p>\n<pre>&gt; install.packages(\"CARBayes\")<\/pre>\n<h2>\u5b9f\u884c<\/h2>\n<p>\u3000CARBayes\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u547c\u3073\u51fa\u3057\uff0c\u89e3\u6790\u3092\u5b9f\u884c\u3059\u308b\uff0e\u6642\u9593\u304c\u304b\u304b\u308b\uff0e\u306a\u304ay\u306f\u71b1\u4e2d\u75c7\u642c\u9001\u4eba\u54e1\u6570\uff0cx1\u306f\u6700\u9ad8\u6c17\u6e29\uff0cx2\u306f\u5e73\u5747\u6c34\u84b8\u6c17\u5727\uff0cx3\u306f\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u95a2\u6570\u3092\u9069\u7528\u3057\u305f\u6708\uff0cx4\u306f\u4eba\u53e3\u5bc6\u5ea6\u306e\u5bfe\u6570\uff0cp\u306f65\u6b73\u4ee5\u4e0a\u4eba\u53e3\u3067\u3042\u308b\uff0e<\/p>\n<pre>&gt; library(CARBayes)\n&gt; formula = y ~ offset(log(p)) + x1 + x2 + x3 + x4\n&gt; resGLM=S.glm(formula = formula, data = HeatStroke9, family = \"poisson\", burnin = 5000, n.sample = 20000)<\/pre>\n<pre>Setting up the model.\nGenerating 15000 post burnin and thinned (if requested) samples.\n  |====================================================================================================================| 100%\nSummarising results.\nFinished in  1170.6 seconds.<\/pre>\n<h2>\u7d50\u679c<\/h2>\n<p>\u3000\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b\uff0e\u3059\u3079\u3066\u306e\u4fc2\u6570\u304c\uff10\u3092\u307e\u305f\u3044\u3067\u304a\u3089\u305a\uff0c\u6709\u610f\u3067\u3042\u308b\uff0e<\/p>\n<pre>&gt; resGLM\n\n#################\n#### Model fitted\n#################\nLikelihood model - Poisson (log link function) \nRandom effects model - None\nRegression equation - y ~ offset(log(p)) + x1 + x2 + x3 + x4\nNumber of missing observations - 0\n\n############\n#### Results\n############\nPosterior quantities and DIC\n\n                Mean     2.5%    97.5% n.effective Geweke.diag\n(Intercept) -20.4983 -20.5312 -20.4656       532.0        -1.1\nx1            0.2781   0.2772   0.2790       459.7         0.6\nx2            0.0737   0.0730   0.0744       611.3         1.4\nx3           -0.9234  -0.9328  -0.9140      1313.6        -0.7\nx4           -0.1485  -0.1510  -0.1460      3320.2         0.5\n\nDIC =  474365.3       p.d =  5.001884       LMPL =  -237201.5 <\/pre>\n<p>\u3000\u6700\u5f8c\u306bHeatStroke9\u306b\u65b0\u3057\u3044\u5217Bayes\u3092\u8ffd\u52a0\u3057\uff0ccsv\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3059\uff0e<\/p>\n<pre>&gt; HeatStroke9$Bayes=as.integer(resGLM$fitted.values,0)\n&gt; write.csv(HeatStroke9, \"v11.csv\", fileEncoding = \"CP932\")<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3000CARBayes\u3092\u4f7f\u3063\u3066\u71b1\u4e2d\u75c7\u642c\u9001\u4eba\u54e1\u6570\u3092\u30de\u30eb\u30b3\u30d5\u9023\u9396\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u306b\u3066\u63a8\u5b9a\u3057\u305f\uff0e\u7d50\u679c\u306f\u5272\u611b\u3059\u308b\u304c\uff0cglm\u95a2\u6570\u3092\u7528\u3044\u3066\u63a8\u5b9a\u3057\u305f\u7d50\u679c\u3068\u540c\u4e00\u3067\u3042\u3063\u305f\uff0e\u7a7a\u9593\u7d71\u8a08\u3092\u4f75\u7528\u3057\u305f\u89e3\u6790\u306f\u6b21\u306e\u6a5f\u4f1a\u306b\u8b72\u308b\uff0e<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E5%AE%9F%E8%B7%B5Data-Science%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA-R%E3%81%A7%E3%81%AF%E3%81%98%E3%82%81%E3%82%8B%E5%9C%B0%E7%90%86%E7%A9%BA%E9%96%93%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E7%B5%B1%E8%A8%88%E8%A7%A3%E6%9E%90%E5%85%A5%E9%96%80-KS%E6%83%85%E5%A0%B1%E7%A7%91%E5%AD%A6%E5%B0%82%E9%96%80%E6%9B%B8-%E6%9D%91%E4%B8%8A\/dp\/406527303X?&amp;linkCode=li3&amp;tag=gwho-22&amp;linkId=63f26816137418f8312742180e8abddf&amp;language=ja_JP&amp;ref_=as_li_ss_il\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=406527303X&amp;Format=_SL250_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=gwho-22&amp;language=ja_JP\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border: none !important; margin: 0px !important;\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=gwho-22&amp;language=ja_JP&amp;l=li3&amp;o=9&amp;a=406527303X\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u7a7a\u9593\u7d71\u8a08\u3092\u52c9\u5f37\u3057\u3066\u3044\u308b\uff0e\u7a7a\u9593\u76f8\u95a2\u3092\u8003\u616e\u3057\u305f\u4e00\u822c\u5316\u7dda\u5f62\u30e2\u30c7\u30eb\u304c\u5730\u57df\u3054\u3068\u306e\u30ab\u30a6\u30f3\u30c8\u30c7\u30fc\u30bf\u3084\u30d0\u30a4\u30ca\u30ea\u30fc\u30c7\u30fc\u30bf\u3092\u30e2\u30c7\u30eb\u5316\u3059\u308b\u305f\u3081\u306b\u63d0\u6848\u3055\u308c\u3066\u3044\u308b\uff0e\u4eca\u56de\u306fCAR\u30e2\u30c7\u30eb\u3092\u6271\u3046\uff0eCARBayes\u3067\u306f\u7a7a\u9593\u76f8\u95a2\u3092\u8003\u616e\u3057\u306a\u3044\u901a\u5e38\u306e\u30dd\u30a2\u30bd\u30f3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=17556\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u71b1\u4e2d\u75c7\u642c\u9001\u4eba\u54e1\u6570\u3092\u30de\u30eb\u30b3\u30d5\u9023\u9396\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u30d9\u30a4\u30ba\u63a8\u5b9a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[12918,13469,13464,13461,13460,9187,2657,13349,13468,11356,13472,13470,13333,13462,13312,13346,13465,13309,13466,13467,13463,13471,13458,13459,13473,13299,13377,13407,13370,10953,4354,11240,2892,8130,13325,13457,13456],"class_list":["post-17556","post","type-post","status-publish","format-standard","hentry","category-technology","tag-12918","tag-as-integer","tag-burnin","tag-carbayes","tag-car","tag-cp932","tag-csv","tag-data-2","tag-dic","tag-family","tag-fileencoding","tag-fitted-values","tag-formula","tag-install-packages","tag-intercept","tag-mean","tag-n-sample","tag-poisson","tag-random-effects-model","tag-regression-equation","tag-s-glm","tag-write-csv","tag-13458","tag-13459","tag-13473","tag-13299","tag-13377","tag-13407","tag-13370","tag-10953","tag-4354","tag-11240","tag-2892","tag-8130","tag-13325","tag-13457","tag-13456"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/17556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17556"}],"version-history":[{"count":9,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/17556\/revisions"}],"predecessor-version":[{"id":17567,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/17556\/revisions\/17567"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}