{"id":9341,"date":"2026-08-18T18:17:11","date_gmt":"2026-08-18T09:17:11","guid":{"rendered":"https:\/\/since2020.jp\/media\/?p=9341"},"modified":"2026-08-18T18:17:11","modified_gmt":"2026-08-18T09:17:11","slug":"cox-proportional-hazards-model","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/cox-proportional-hazards-model\/","title":{"rendered":"\u5c11\u3057\u305a\u3064\u5206\u304b\u308bCox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\uff08Cox\u56de\u5e30\u3068\u3082\u547c\u3070\u308c\u307e\u3059\uff09\u306f\u3001\u300c\u4f55\u304c\u30a4\u30d9\u30f3\u30c8\u306e\u8d77\u304d\u3084\u3059\u3055\u306b\u5f71\u97ff\u3057\u3066\u3044\u308b\u304b\u300d\u3092\u8abf\u3079\u3089\u308c\u308b\u4fbf\u5229\u306a\u624b\u6cd5\u3067\u3059\u3002\u533b\u7642\u3092\u306f\u3058\u3081\u3001\u89e3\u7d04\u4e88\u6e2c\u3084\u6545\u969c\u5206\u6790\u306a\u3069\u3001\u5e45\u5e83\u3044\u5206\u91ce\u3067\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u96e3\u3057\u3044\u624b\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u7d30\u304b\u3044\u7406\u8ad6\u306f\u3044\u3063\u305f\u3093\u8107\u306b\u7f6e\u3044\u3066\u3001\u307e\u305aCox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306e\u300c\u7d50\u679c\u304c\u8aad\u3081\u308b\u3088\u3046\u306b\u306a\u308b\u300d\u3053\u3068\u3092\u76ee\u6a19\u306b\u3057\u307e\u3059\u3002\u7d71\u8a08\u306e\u77e5\u8b58\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3068\u3044\u3046\u65b9\u3067\u3082\u8aad\u3081\u308b\u3088\u3046\u306b\u3001\u6570\u5f0f\u306e\u5c0e\u51fa\u306b\u306f\u8e0f\u307f\u8fbc\u307e\u305a\u3001\u300c\u3053\u306e\u624b\u6cd5\u3067\u4f55\u304c\u5206\u304b\u308b\u306e\u304b\u300d\u300c\u51fa\u3066\u304d\u305f\u7d50\u679c\u3092\u3069\u3046\u89e3\u91c8\u3059\u308b\u306e\u304b\u300d\u306b\u7d5e\u3063\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u3072\u3068\u3053\u3068\u3067\u8a00\u3046\u3068\u3001\u300c\u3042\u308b\u30a4\u30d9\u30f3\u30c8\u306e\u8d77\u304d\u3084\u3059\u3055\u306b\u3001\u3069\u306e\u8981\u56e0\u304c\u3069\u308c\u304f\u3089\u3044\u5f71\u97ff\u3057\u3066\u3044\u308b\u304b\u300d\u3092\u8abf\u3079\u308b\u624b\u6cd5\u3067\u3059\u3002\u751f\u5b58\u6642\u9593\u89e3\u6790\u3068\u547c\u3070\u308c\u308b\u5206\u91ce\u306e\u624b\u6cd5\u306e\u4e00\u3064\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5206\u6790\u3059\u308b\u3068\u3001\u5404\u8981\u56e0\u306b\u3064\u3044\u3066\u300c\u30cf\u30b6\u30fc\u30c9\u6bd4\u300d\u3068\u3044\u3046\u6570\u5b57\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u30cf\u30b6\u30fc\u30c9\u6bd4\u3068\u306f\u3001\u305d\u306e\u8981\u56e0\u304c\u300c\u30a4\u30d9\u30f3\u30c8\u306e\u8d77\u304d\u3084\u3059\u3055\u300d\u3092\u4f55\u500d\u306b\u3059\u308b\u304b\u3092\u8868\u3059\u5024\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u300c\u65b0\u85ac\u3092\u4f7f\u3046\u3068\u6b7b\u4ea1\u30ea\u30b9\u30af\u304c0.23\u500d\u306b\u306a\u308b\u300d\u3068\u3044\u3063\u305f\u5f62\u3067\u7d50\u679c\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b4\u30fc\u30eb\u306f\u3001\u3053\u306e\u30cf\u30b6\u30fc\u30c9\u6bd4\u3068\u3044\u3046\u6570\u5b57\u3092\u6b63\u3057\u304f\u8aad\u3081\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u751f\u5b58\u6642\u9593\u89e3\u6790\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u751f\u5b58\u6642\u9593\u89e3\u6790\u306f\u3001\u300c\u3042\u308b\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3059\u308b\u307e\u3067\u306e\u6642\u9593\u300d\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u305f\u5206\u91ce\u3067\u3059\u3002\u540d\u524d\u306b\u300c\u751f\u5b58\u300d\u3068\u3042\u308a\u307e\u3059\u304c\u3001\u751f\u6b7b\u306b\u9650\u3089\u305a\u30012\u629e\u3067\u8868\u73fe\u3067\u304d\u308b\u30a4\u30d9\u30f3\u30c8\u306a\u3089\u4f55\u306b\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u751f\u5b58\/\u6b7b\u4ea1\u3001\u767a\u75c7\u3057\u306a\u3044\/\u767a\u75c7\u3001\u89e3\u7d04\u3057\u306a\u3044\/\u89e3\u7d04\u3001\u8cfc\u5165\u3057\u306a\u3044\/\u8cfc\u5165\u3068\u3044\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u308b\u307e\u3067\u3069\u308c\u304f\u3089\u3044\u304b\u304b\u308b\u304b\u300d\u300c\u4f55\u304c\u8d77\u304d\u3084\u3059\u3055\u306b\u5f71\u97ff\u3059\u308b\u304b\u300d\u3092\u6271\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5927\u304d\u306a\u7279\u5fb4\u306f\u3001\u6b21\u306b\u8aac\u660e\u3059\u308b\u300c\u6253\u3061\u5207\u308a\u300d\u3092\u8003\u616e\u3067\u304d\u308b\u70b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6253\u3061\u5207\u308a\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u6253\u3061\u5207\u308a\uff08censoring\uff09\u3068\u306f\u3001\u300c\u89b3\u5bdf\u671f\u9593\u4e2d\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u306a\u304b\u3063\u305f\uff08\u307e\u305f\u306f\u8ffd\u3048\u306a\u304f\u306a\u3063\u305f\uff09\u300d\u72b6\u614b\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u300c\u65b0\u85ac\u306e\u52b9\u679c\u309210\u5e74\u9593\u8ffd\u8de1\u3059\u308b\u300d\u3068\u3044\u3046\u7814\u7a76\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002\u3042\u308b\u4eba\u306f3\u5e74\u76ee\u306b\u4ea1\u304f\u306a\u3063\u305f\u3068\u3059\u308c\u3070\u3001\u3053\u308c\u306f\u30a4\u30d9\u30f3\u30c8\u767a\u751f\uff08time=3\uff09\u3067\u3059\u3002\u4e00\u65b9\u3001\u3042\u308b\u4eba\u306f10\u5e74\u7d4c\u3063\u3066\u3082\u751f\u5b58\u3057\u3066\u3044\u305f\u3068\u3059\u308b\u3068\u300110\u5e74\u6642\u70b9\u3067\u89b3\u5bdf\u304c\u7d42\u308f\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u305d\u306e\u5f8c\u3044\u3064\u4ea1\u304f\u306a\u308b\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u304c\u6253\u3061\u5207\u308a\u3067\u3059\u3002\u307e\u305f\u5225\u306e\u4eba\u304c5\u5e74\u76ee\u306b\u5f15\u3063\u8d8a\u3057\u3066\u9023\u7d61\u304c\u53d6\u308c\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u3082\u3001\u305d\u3053\u304b\u3089\u5148\u306f\u8ffd\u3048\u306a\u3044\u306e\u3067\u6253\u3061\u5207\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u5927\u4e8b\u306a\u306e\u306f\u3001\u6253\u3061\u5207\u308a\u306f\u300c\u60c5\u5831\u304c\u306a\u3044\u300d\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u300c\u5c11\u306a\u304f\u3068\u3082\u305d\u306e\u6642\u70b9\u307e\u3067\u306f\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u300d\u3068\u3044\u3046\u60c5\u5831\u3092\u6301\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u6253\u3061\u5207\u308a\u3092\u6368\u3066\u305a\u306b\u6d3b\u304b\u305b\u308b\u3053\u3068\u304c\u3001\u751f\u5b58\u6642\u9593\u89e3\u6790\u306e\u5f37\u307f\u3067\u3059\u3002\u3082\u3057\u5358\u7d14\u306b\u300c\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u305f\u4eba\u3060\u3051\u300d\u3067\u5e73\u5747\u3092\u53d6\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u6253\u3061\u5207\u308a\u306e\u4eba\u306e\u60c5\u5831\u304c\u7121\u99c4\u306b\u306a\u308a\u3001\u7d50\u679c\u304c\u6b6a\u3093\u3067\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u8d70\u3089\u305b\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u67b6\u7a7a\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\uff08\u60a3\u800560\u4eba\u5206\uff09\u3067Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f7f\u3046\u30c7\u30fc\u30bf\u306f\u6b21\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u3001\u30a4\u30d9\u30f3\u30c8\u306f\u6b7b\u4ea1\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5217\u540d<\/th><th>\u610f\u5473<\/th><\/tr><\/thead><tbody><tr><td>time<\/td><td>\u89b3\u5bdf\u671f\u9593\uff08\u5e74\uff09\u3002\u30a4\u30d9\u30f3\u30c8\u767a\u751f or \u6253\u3061\u5207\u308a\u307e\u3067\u306e\u6642\u9593<\/td><\/tr><tr><td>age<\/td><td>\u5e74\u9f62\uff08\u5171\u5909\u91cf\uff1a\u5f71\u97ff\u3092\u8abf\u3079\u305f\u3044\u8981\u56e0\uff09<\/td><\/tr><tr><td>treat<\/td><td>\u6cbb\u7642\u306e\u7a2e\u985e\uff080\uff1d\u5f93\u6765\u6cbb\u7642, 1\uff1d\u65b0\u85ac\uff09<\/td><\/tr><tr><td>event<\/td><td>1\uff1d\u6b7b\u4ea1\uff08\u30a4\u30d9\u30f3\u30c8\u767a\u751f\uff09, 0\uff1d\u6253\u3061\u5207\u308a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u3092<code>dummy.csv<\/code>\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u3001Python\u306elifelines\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3067Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306b\u304b\u3051\u307e\u3059\u3002\u306a\u304a\u3001<code>dummy.csv<\/code>\u306e\u4e2d\u8eab\u306f\u3053\u306e\u8a18\u4e8b\u306e\u6700\u5f8c\u306b\u4ed8\u9332\u3068\u3057\u3066\u8f09\u305b\u3066\u3042\u308b\u306e\u3067\u3001\u624b\u5143\u3067\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd\nfrom lifelines import CoxPHFitter\n\n# \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\ndf = pd.read_csv(&quot;dummy.csv&quot;)\n\n# Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306e\u5b9f\u884c\ncph = CoxPHFitter()\ncph.fit(df, duration_col=&quot;time&quot;, event_col=&quot;event&quot;)\n\n# \u7d50\u679c\u306e\u8868\u793a\uff08decimals=4 \u3067\u5c0f\u6570\u70b9\u4ee5\u4e0b4\u6841\u307e\u3067\u8868\u793a\uff09\ncph.print_summary(decimals=4)\n<\/code><\/pre><\/div>\n\n\n\n<p><code>duration_col<\/code>\u306b\u306f\u6642\u9593\u306e\u5217\uff08time\uff09\u3092\u3001<code>event_col<\/code>\u306b\u306f\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u304b\u3069\u3046\u304b\u306e\u5217\uff08event\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5171\u5909\u91cf\uff08age, treat\uff09\u306f\u3001\u6307\u5b9a\u3057\u305f2\u5217\u4ee5\u5916\u304c\u81ea\u52d5\u7684\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u307e\u305f\u3001<code>decimals=4<\/code>\u306fp\u5024\u306a\u3069\u3092\u5c0f\u6570\u70b9\u4ee5\u4e0b4\u6841\u307e\u3067\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u6307\u5b9a\u3067\u3001\u3053\u308c\u3092\u4ed8\u3051\u306a\u3044\u3068<code>&lt;0.005<\/code>\u306e\u3088\u3046\u306b\u4e38\u3081\u3089\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e2\u30c7\u30eb\u306e\u57fa\u672c\u60c5\u5831<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u5024<\/th><\/tr><\/thead><tbody><tr><td>model<\/td><td>lifelines.CoxPHFitter<\/td><\/tr><tr><td>duration col<\/td><td>&#8216;time&#8217;<\/td><\/tr><tr><td>event col<\/td><td>&#8216;event&#8217;<\/td><\/tr><tr><td>baseline estimation<\/td><td>breslow<\/td><\/tr><tr><td>number of observations<\/td><td>60<\/td><\/tr><tr><td>number of events observed<\/td><td>28<\/td><\/tr><tr><td>partial log-likelihood<\/td><td>-88.4716<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u5404\u5171\u5909\u91cf\u306e\u63a8\u5b9a\u7d50\u679c<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>covariate<\/th><th>coef<\/th><th>exp(coef)<\/th><th>se(coef)<\/th><th>coef lower 95%<\/th><th>coef upper 95%<\/th><th>exp(coef) lower 95%<\/th><th>exp(coef) upper 95%<\/th><th>cmp to<\/th><th>z<\/th><th>p<\/th><th>-log2(p)<\/th><\/tr><\/thead><tbody><tr><td>age<\/td><td>0.0808<\/td><td>1.0841<\/td><td>0.0223<\/td><td>0.0371<\/td><td>0.1244<\/td><td>1.0378<\/td><td>1.1325<\/td><td>0.0000<\/td><td>3.6288<\/td><td>0.0003<\/td><td>11.7778<\/td><\/tr><tr><td>treat<\/td><td>-1.4542<\/td><td>0.2336<\/td><td>0.4453<\/td><td>-2.3270<\/td><td>-0.5814<\/td><td>0.0976<\/td><td>0.5591<\/td><td>0.0000<\/td><td>-3.2657<\/td><td>0.0011<\/td><td>9.8388<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u30e2\u30c7\u30eb\u5168\u4f53\u306e\u8a55\u4fa1<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u5024<\/th><\/tr><\/thead><tbody><tr><td>Concordance<\/td><td>0.7602<\/td><\/tr><tr><td>Partial AIC<\/td><td>180.9432<\/td><\/tr><tr><td>log-likelihood ratio test<\/td><td>28.5998 on 2 df<\/td><\/tr><tr><td>-log2(p) of ll-ratio test<\/td><td>20.6304<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6570\u5b57\u304c\u305f\u304f\u3055\u3093\u4e26\u3093\u3067\u3044\u3066\u6238\u60d1\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6b21\u306e\u7ae0\u3067\u3053\u306e\u51fa\u529b\u306e\u300c\u3069\u3053\u3092\u898b\u308c\u3070\u3044\u3044\u304b\u300d\u3092\u9806\u756a\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d50\u679c\u306e\u8aad\u307f\u65b9<\/h2>\n\n\n\n<p>\u305f\u304f\u3055\u3093\u306e\u6570\u5b57\u304c\u4e26\u3093\u3067\u3044\u307e\u3059\u304c\u3001\u307e\u305a\u898b\u308b\u3079\u304d\u306f\u300c\u30cf\u30b6\u30fc\u30c9\u6bd4\uff08exp(coef)\uff09\u300d\u306e\u5217\u3067\u3059\u3002\u3053\u3053\u3060\u3051\u8aad\u3081\u308c\u3070\u3001\u7d50\u679c\u306e\u5927\u90e8\u5206\u306f\u7406\u89e3\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2460 \u30cf\u30b6\u30fc\u30c9\u6bd4\uff08exp(coef)\uff09\uff1a\u5f71\u97ff\u306e\u5927\u304d\u3055\u3068\u5411\u304d<\/h3>\n\n\n\n<p>\u30cf\u30b6\u30fc\u30c9\u6bd4\u306f\u300c\u305d\u306e\u8981\u56e0\u304c\u30a4\u30d9\u30f3\u30c8\uff08\u6b7b\u4ea1\uff09\u306e\u8d77\u304d\u3084\u3059\u3055\u3092\u4f55\u500d\u306b\u3059\u308b\u304b\u300d\u3092\u8868\u3057\u307e\u3059\u3002\u8aad\u307f\u65b9\u306e\u30eb\u30fc\u30eb\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u30cf\u30b6\u30fc\u30c9\u6bd4\u304c1\u3088\u308a\u5927\u304d\u3051\u308c\u3070\u3001\u305d\u306e\u8981\u56e0\u304c\u5927\u304d\u3044\u307b\u3069\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u3084\u3059\u3044\uff08\u30ea\u30b9\u30af\u304c\u4e0a\u304c\u308b\uff09\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u9006\u306b1\u3088\u308a\u5c0f\u3055\u3051\u308c\u3070\u3001\u305d\u306e\u8981\u56e0\u304c\u5927\u304d\u3044\u307b\u3069\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u306b\u304f\u3044\uff08\u30ea\u30b9\u30af\u304c\u4e0b\u304c\u308b\uff1d\u4fdd\u8b77\u7684\uff09\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3061\u3087\u3046\u30691\u306e\u3068\u304d\u306f\u3001\u305d\u306e\u8981\u56e0\u306f\u30a4\u30d9\u30f3\u30c8\u306e\u8d77\u304d\u3084\u3059\u3055\u306b\u5f71\u97ff\u3057\u306a\u3044\u3068\u8aad\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e\u7d50\u679c\u3092\u898b\u3066\u307f\u307e\u3059\u3002age\uff08\u5e74\u9f62\uff09\u306f1.0841\u306a\u306e\u3067\u3001\u5e74\u9f62\u304c1\u6b73\u4e0a\u304c\u308b\u3054\u3068\u306b\u3001\u6b7b\u4ea1\u306e\u30ea\u30b9\u30af\u304c\u7d041.08\u500d\u306b\u306a\u308a\u307e\u3059\u30021\u6b73\u3067\u306f\u5c0f\u3055\u304f\u898b\u3048\u307e\u3059\u304c\u300110\u6b73\u5dee\u306a\u30891.0841\u306e10\u4e57\u3067\u7d042.2\u500d\u306b\u306a\u308a\u3001\u7a4d\u307f\u91cd\u306a\u308b\u3068\u5927\u304d\u306a\u5dee\u3067\u3059\u3002\u4e00\u65b9\u3001treat\uff08\u65b0\u85ac\uff09\u306f0.2336\u306a\u306e\u3067\u3001\u65b0\u85ac\u3092\u4f7f\u3046\u3068\u6b7b\u4ea1\u30ea\u30b9\u30af\u304c\u5f93\u6765\u6cbb\u7642\u306e\u7d040.23\u500d\u306b\u307e\u3067\u4e0b\u304c\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u65b0\u85ac\u306f\u6b7b\u4ea1\u30ea\u30b9\u30af\u3092\u5927\u304d\u304f\u4e0b\u3052\u3066\u304a\u308a\u3001\u4fdd\u8b77\u7684\u306b\u50cd\u3044\u3066\u3044\u308b\u3068\u89e3\u91c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2461 p\u5024\uff1a\u305d\u306e\u5f71\u97ff\u306f\u300c\u5076\u7136\u3067\u306f\u306a\u3055\u305d\u3046\u300d\u304b<\/h3>\n\n\n\n<p>p\u5024\u306f\u3001\u305d\u306e\u5f71\u97ff\u304c\u300c\u5076\u7136\u3067\u306f\u306a\u3055\u305d\u3046\u304b\u300d\u3092\u5224\u65ad\u3059\u308b\u305f\u3081\u306e\u6570\u5b57\u3067\u3059\u3002p\u5024\u304c\u5c0f\u3055\u3051\u308c\u3070\uff08\u4e00\u822c\u306b0.05\u672a\u6e80\uff09\u3001\u300c\u5076\u7136\u3068\u306f\u8003\u3048\u306b\u304f\u3044\uff1d\u7d71\u8a08\u7684\u306b\u610f\u5473\u306e\u3042\u308b\u5f71\u97ff\u300d\u3068\u307f\u306a\u3057\u307e\u3059\u3002\u9006\u306bp\u5024\u304c\u5927\u304d\u3051\u308c\u3070\u3001\u300c\u5076\u7136\u306e\u7bc4\u56f2\u304b\u3082\u3057\u308c\u305a\u3001\u52b9\u679c\u304c\u3042\u308b\u3068\u306f\u8a00\u3044\u5207\u308c\u306a\u3044\u300d\u3068\u5224\u65ad\u3057\u307e\u3059\u3002\u3056\u3063\u304f\u308a\u300c\u5c0f\u3055\u3044\u307b\u3069\u3001\u305d\u306e\u5f71\u97ff\u306f\u4fe1\u983c\u3067\u304d\u308b\u300d\u3068\u899a\u3048\u3066\u304a\u3051\u3070\u5341\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fage\uff08p=0.0003\uff09\u3082treat\uff08p=0.0011\uff09\u3082\u3069\u3061\u3089\u30820.05\u672a\u6e80\u306a\u306e\u3067\u3001\u4e21\u65b9\u3068\u3082\u7d71\u8a08\u7684\u306b\u610f\u5473\u306e\u3042\u308b\u5f71\u97ff\u3060\u3068\u89e3\u91c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2462 95%\u4fe1\u983c\u533a\u9593\uff1a\u30cf\u30b6\u30fc\u30c9\u6bd4\u306e\u300c\u3076\u308c\u5e45\u300d<\/h3>\n\n\n\n<p>\u30cf\u30b6\u30fc\u30c9\u6bd4\u306f1\u3064\u306e\u63a8\u5b9a\u5024\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u304c\u5909\u308f\u308c\u3070\u591a\u5c11\u3076\u308c\u307e\u3059\u3002\u305d\u306e\u300c\u3082\u3063\u3068\u3082\u3089\u3057\u3044\u7bc4\u56f2\u300d\u3092\u793a\u3059\u306e\u304c95%\u4fe1\u983c\u533a\u9593\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u898b\u308b\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u4fe1\u983c\u533a\u9593\u304c1\u3092\u307e\u305f\u3044\u3067\u3044\u308b\u304b\u3069\u3046\u304b\u3067\u3059\u30021\u3092\u307e\u305f\u3044\u3067\u3044\u306a\u3051\u308c\u3070\uff08\u305f\u3068\u3048\u3070treat\u306e0.0976\u301c0.5591\u306f\u5168\u30661\u672a\u6e80\uff09\u300c\u52b9\u679c\u3042\u308a\u300d\u3001\u4e0b\u96500.8\u30fb\u4e0a\u96501.3\u306e\u3088\u3046\u306b1\u3092\u307e\u305f\u3044\u3067\u3044\u308c\u3070\u300c\u30ea\u30b9\u30af\u3092\u4e0a\u3052\u308b\u3068\u3082\u4e0b\u3052\u308b\u3068\u3082\u8a00\u3044\u5207\u308c\u306a\u3044\u300d\u3068\u5224\u65ad\u3057\u307e\u3059\u3002\u4eca\u56de\u306fage\u3082treat\u30821\u3092\u307e\u305f\u3044\u3067\u3044\u306a\u3044\u306e\u3067\u300c\u52b9\u679c\u3042\u308a\u300d\u3068\u8aad\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u52d8\u306e\u3044\u3044\u65b9\u306f\u300cp\u5024\u3068\u540c\u3058\u3053\u3068\u3092\u8a00\u3063\u3066\u3044\u308b\u306e\u3067\u306f\uff1f\u300d\u3068\u6c17\u3065\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u3068\u304a\u308a\u3067\u3001\u300c\u4fe1\u983c\u533a\u9593\u304c1\u3092\u307e\u305f\u304c\u306a\u3044\u300d\u3053\u3068\u3068\u300cp\u5024\u304c0.05\u672a\u6e80\u300d\u306f\u5fc5\u305a\u4e00\u81f4\u3057\u307e\u3059\uff08\u3069\u3061\u3089\u3082\u540c\u3058\u8a08\u7b97\u304b\u3089\u51fa\u3066\u304f\u308b\u305f\u3081\u3067\u3059\uff09\u3002\u3067\u306f\u306a\u305c\u4e21\u65b9\u3042\u308b\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u4fe1\u983c\u533a\u9593\u306f\u6709\u610f\u304b\u3069\u3046\u304b\u306b\u52a0\u3048\u3066\u300c\u52b9\u679c\u304c\u3069\u306e\u304f\u3089\u3044\u306e\u5927\u304d\u3055\u306b\u306a\u308a\u305d\u3046\u304b\u300d\u307e\u3067\u5206\u304b\u308b\u304b\u3089\u3067\u3059\u3002\u305f\u3068\u3048\u3070treat\u306e0.0976\u301c0.5591\u304b\u3089\u306f\u3001\u300c\u65b0\u85ac\u306f\u6b7b\u4ea1\u30ea\u30b9\u30af\u30921\/10\u304f\u3089\u3044\u307e\u3067\u4e0b\u3052\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3057\u3001\u534a\u5206\u7a0b\u5ea6\u304b\u3082\u3057\u308c\u306a\u3044\u300d\u3068\u3044\u3046\u5e45\u304c\u8aad\u307f\u53d6\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\uff1a\u6700\u4f4e\u9650\u3053\u308c\u3060\u3051\u62bc\u3055\u3048\u308c\u3070\u8aad\u3081\u308b<\/h2>\n\n\n\n<p>Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306e\u7d50\u679c\u306f\u3001\u307e\u305a\u30cf\u30b6\u30fc\u30c9\u6bd4\uff08exp(coef)\uff09\u3092\u898b\u3066\u30011\u3088\u308a\u5927\u304d\u3044\u304b\u5c0f\u3055\u3044\u304b\u3067\u5f71\u97ff\u306e\u5411\u304d\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\u305d\u306e\u3046\u3048\u3067\u3001p\u5024\uff080.05\u672a\u6e80\u304b\uff09\u3068\u4fe1\u983c\u533a\u9593\uff081\u3092\u307e\u305f\u304c\u306a\u3044\u304b\uff09\u3092\u898b\u3066\u3001\u305d\u306e\u5f71\u97ff\u304c\u4fe1\u983c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\u3053\u306e3\u3064\u3092\u62bc\u3055\u3048\u3066\u304a\u3051\u3070\u3001Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306e\u7d50\u679c\u306f\u3072\u3068\u307e\u305a\u8aad\u307f\u3053\u306a\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u300c\u7d50\u679c\u306e\u8aad\u307f\u65b9\u300d\u306b\u7d5e\u3063\u3066\u3001Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u3092\u4f7f\u3048\u308b\u3068\u3053\u308d\u307e\u3067\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u4e00\u65b9\u3067\u3001\u300c\u305d\u3082\u305d\u3082\u30cf\u30b6\u30fc\u30c9\u3068\u306f\u4f55\u304b\u300d\u300c\u306a\u305c\u6bd4\u3092\u53d6\u308b\u306e\u304b\u300d\u300c\u6253\u3061\u5207\u308a\u3092\u3069\u3046\u8a08\u7b97\u306b\u5165\u308c\u3066\u3044\u308b\u306e\u304b\u300d\u3068\u3044\u3063\u305f\u88cf\u5074\u306e\u4ed5\u7d44\u307f\u306b\u306f\u89e6\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u5225\u306e\u8a18\u4e8b\u3067\u6271\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ed8\u9332\uff1a\u4f7f\u7528\u3057\u305f\u30c0\u30df\u30fc\u30c7\u30fc\u30bf<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u4f7f\u3063\u305f<code>dummy.csv<\/code>\u306e\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\uff08\u60a3\u800560\u4eba\u5206\uff09\u3002\u624b\u5143\u3067\u8a66\u3059\u5834\u5408\u306f\u3001\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066<code>dummy.csv<\/code>\u3068\u3044\u3046\u540d\u524d\u3067\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>time,age,treat,event\n0.7,78,0,0\n10.7,66,0,1\n11.6,68,0,1\n1.1,76,0,1\n20.0,65,1,0\n6.7,72,0,0\n7.6,74,0,1\n0.9,52,0,1\n8.5,46,1,0\n20.0,55,1,0\n20.0,54,1,0\n4.6,75,0,1\n20.0,76,1,0\n20.0,45,0,0\n11.5,62,0,1\n3.2,73,0,1\n20.0,49,1,0\n17.8,72,1,1\n20.0,49,1,0\n2.1,61,0,1\n6.1,73,1,1\n10.0,55,0,0\n20.0,56,1,0\n1.9,54,1,1\n14.6,70,0,1\n20.0,53,1,0\n4.4,79,1,0\n20.0,60,1,0\n13.8,61,1,0\n20.0,62,1,0\n0.3,65,0,1\n20.0,64,1,0\n8.3,62,0,1\n13.2,79,0,1\n1.3,73,0,1\n20.0,72,1,0\n0.5,69,1,1\n20.0,66,1,0\n6.3,56,1,1\n3.2,79,1,1\n4.6,61,1,0\n20.0,52,0,0\n15.9,74,1,1\n12.1,50,1,0\n8.8,75,0,1\n6.7,66,0,1\n20.0,49,1,0\n20.0,46,0,0\n9.1,60,1,0\n20.0,46,0,0\n4.0,49,0,0\n16.4,63,0,0\n0.6,78,0,1\n11.0,61,1,0\n0.1,73,0,1\n10.1,77,0,1\n20.0,73,1,0\n10.2,67,1,1\n13.6,60,0,1\n8.4,62,1,0\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\uff08Cox\u56de\u5e30\u3068\u3082\u547c\u3070\u308c\u307e\u3059\uff09\u306f\u3001\u300c\u4f55\u304c\u30a4\u30d9\u30f3\u30c8\u306e\u8d77\u304d\u3084\u3059\u3055\u306b\u5f71\u97ff\u3057\u3066\u3044\u308b\u304b\u300d\u3092\u8abf\u3079\u3089\u308c\u308b\u4fbf\u5229\u306a\u624b\u6cd5\u3067\u3059\u3002\u533b\u7642\u3092\u306f\u3058\u3081\u3001\u89e3\u7d04\u4e88\u6e2c\u3084\u6545\u969c\u5206\u6790\u306a\u3069\u3001\u5e45\u5e83\u3044\u5206\u91ce\u3067\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u304d\u3061\u3093\u3068\u7406 [&hellip;]<\/p>\n","protected":false},"author":105,"featured_media":7735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1251],"tags":[331,39,35],"class_list":["post-9341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-analysis","tag-python","tag-39","tag-35"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/9341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=9341"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/9341\/revisions"}],"predecessor-version":[{"id":9342,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/9341\/revisions\/9342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/7735"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=9341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=9341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=9341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}