{"id":79,"date":"2023-09-05T21:56:20","date_gmt":"2023-09-05T12:56:20","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/iptw-cox-regression-in-r\/"},"modified":"2024-08-29T20:24:51","modified_gmt":"2024-08-29T11:24:51","slug":"iptw-cox-regression-in-r","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/iptw-cox-regression-in-r\/","title":{"rendered":"R \u3067 IPTW Cox \u56de\u5e30\u3092\u884c\u3046\u65b9\u6cd5"},"content":{"rendered":"\n<p>IPTW \u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051 Cox \u56de\u5e30\u3092 R \u3067\u884c\u3046\u65b9\u6cd5<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IPTW-Cox-\u56de\u5e30\u306e\u524d\u63d0\">IPTW Cox \u56de\u5e30\u306e\u524d\u63d0<\/h2>\n\n\n\n<p>IPTW \u306b\u95a2\u3057\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u7167<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/08\/1920x1080-video-Excel-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/best-biostatistics.com\/toukei-er\/entry\/inverse-probability-of-treatment-weighting-linear-regression-in-ezr\/\">\u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051 IPTW \u306e\u8aac\u660e\u3068 EZR \u3067\u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051\u56de\u5e30\u3092\u884c\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051\u3068\u306f\u3001\u50be\u5411\u30b9\u30b3\u30a2\u306e\u9006\u6570\u3092\u7528\u3044\u3066\u3001\u4eba\u6570\u304c\u3042\u307e\u308a\u591a\u304f\u306a\u3044\u5c64\u3092\u539a\u304f\u3059\u308b\u65b9\u6cd5\u3067\u3001\u51e6\u65b9\u306e\u6709\u7121\u306e\u80cc\u666f\u3092\u305d\u308d\u3048\u308b\u65b9\u6cd5\u3067\u3042\u308b\u3002 \u91cd\u56de\u5e30\u3067\u7528\u3044\u308b\u65b9\u6cd5\u3002 \u9006\u78ba\u7387\u91cd\u307f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\"><\/div>\n\n\n<p>IPTW \u306f\u3059\u3067\u306b\u4f5c\u6210\u6e08\u307f\u3068\u3044\u3046\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u308b<\/p>\n\n\n\n<p>IPTW \u306f\u3001EZR \u3067\u4f5c\u6210\u3059\u308b\u306e\u304c\u7c21\u5358\u306a\u306e\u3067\u3001EZR \u3092\u4f7f\u3046\u3053\u3068\u3092\u304a\u52e7\u3081\u3059\u308b<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308b<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2022\/09\/20240412115630-300x300.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/best-biostatistics.com\/toukei-er\/entry\/how-to-draw-iptw-km-curve\/\">R \u3068 EZR \u3067 IPTW \u30ab\u30d7\u30e9\u30f3\u30de\u30a4\u30e4\u30fc\u66f2\u7dda\u3092\u66f8\u304f\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">IPTW \u30ab\u30d7\u30e9\u30f3\u30de\u30a4\u30e4\u30fc\u66f2\u7dda\u306e\u66f8\u304d\u65b9\u3002 R\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068EZR\u3092\u4f7f\u3046\u3068\u66f8\u3051\u308b\u3002 IPTW\u3068\u306f\uff1f IPTW \u3068\u306f\u3001Inverse Probability of Treatment Weights \u306e\u982d\u6587\u5b57\u8a9e\u3002 \u9006\u78ba\u7387\u91cd\u307f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/08\/1920x1080-video-Excel-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/best-biostatistics.com\/toukei-er\/entry\/iptw-log-rank-test-using-ezr-and-r\/\">EZR \u3068 R \u3067 IPTW \u30ed\u30b0\u30e9\u30f3\u30af\u691c\u5b9a\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">IPTW \u30ed\u30b0\u30e9\u30f3\u30af\u691c\u5b9a\u3092EZR\u3068R\u3092\u4f7f\u3063\u3066\u884c\u3046\u65b9\u6cd5\u3002 IPTW\u3068\u306f\uff1f IPTW \u3068\u306f\u3001Inverse Probability of Treatment Weights \u306e\u982d\u6587\u5b57\u8a9e\u3002 \u65e5\u672c\u8a9e\u3067\u306f\u3001\u9006\u78ba\u7387\u91cd\u307f\u3065\u3051\u3068\u8a00\u3046\u3002 &#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IPTW-Cox-\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\">IPTW Cox \u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b<\/h2>\n\n\n\n<p>IPTW \u306f\u3001weight.ATE.GLM.1 \u3068\u3044\u3046\u5909\u6570\u540d\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u3059\u308b<\/p>\n\n\n\n<p>coxphw \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span class=\"synIdentifier\">install.packages<\/span><span class=\"synSpecial\">(<\/span><span class=\"synConstant\">'coxphw'<\/span><span class=\"synSpecial\">)<\/span>\n<\/pre>\n\n\n\n<p>coxphw \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u547c\u3073\u51fa\u3057\u3066\u3001coxphw \u95a2\u6570\u3092\u7528\u3044\u3066 IPTW Cox \u56de\u5e30\u3092\u8a08\u7b97\u3059\u308b<\/p>\n\n\n\n<p>caseweights \u306b IPTW \u3092\u6307\u5b9a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span class=\"synPreProc\">library<\/span><span class=\"synSpecial\">(<\/span>coxphw<span class=\"synSpecial\">)<\/span>\nCoxphwModel.1 <span class=\"synStatement\">&lt;-<\/span> <span class=\"synIdentifier\">coxphw<\/span><span class=\"synSpecial\">(<\/span><span class=\"synIdentifier\">Surv<\/span><span class=\"synSpecial\">(<\/span>Days<span class=\"synSpecial\">,<\/span> Survival<span class=\"synSpecial\">)<\/span><span class=\"synStatement\">~<\/span>Anthracyclines<span class=\"synSpecial\">,<\/span>\ncaseweights<span class=\"synStatement\">=<\/span>ElderlyAML<span class=\"synSpecial\">$<\/span>weight.ATE.GLM.1<span class=\"synSpecial\">,<\/span>\ndata<span class=\"synStatement\">=<\/span>ElderlyAML<span class=\"synSpecial\">)<\/span>\n<span class=\"synIdentifier\">summary<\/span><span class=\"synSpecial\">(<\/span>CoxphwModel.1<span class=\"synSpecial\">)<\/span>\n<\/pre>\n\n\n\n<p>\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u306b\u8a08\u7b97\u3055\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1014\" height=\"416\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/09\/20230629232357.png\" alt=\"\" class=\"wp-image-917\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/09\/20230629232357.png 1014w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/09\/20230629232357-300x123.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/09\/20230629232357-768x315.png 768w\" sizes=\"(max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>Anthracyclines \u3068\u3042\u308b\u884c\u304c\u3001IPTW \u3067\u8abf\u6574\u3055\u308c\u305f\u3001Anthracyclines \u306e\u30cf\u30b6\u30fc\u30c9\u6bd4\u306e\u8a08\u7b97\u7d50\u679c\u3067\u3042\u308b<\/p>\n\n\n\n<p>exp(coef) \u3068\u3042\u308b 0.3571898 \u304c\u30cf\u30b6\u30fc\u30c9\u6bd4\u3067\u3042\u308b<\/p>\n\n\n\n<p>95\uff05 \u4fe1\u983c\u533a\u9593\u3082\u8a08\u7b97\u3055\u308c\u3066\u3044\u308b<\/p>\n\n\n\n<p>lower 0.95, upper 0.95 \u3068\u66f8\u3044\u3066\u3042\u308b\u6570\u5024\u3067\u3042\u308b<\/p>\n\n\n\n<p>p \u306f\u30010.05 \u672a\u6e80\u3067\u3001\u7d71\u8a08\u5b66\u7684\u6709\u610f\u3067\u3042\u308b<\/p>\n\n\n\n<div id=\"biost-2789874837\" class=\"biost- biost-entity-placement\"><p style=\"text-align: center;\"><span style=\"font-size: 20px;\"><strong><a href=\"https:\/\/best-biostatistics.com\/kmhl\">\uff1e\uff1e\u3082\u3046\u7d71\u8a08\u3067\u60a9\u3080\u306e\u306f\u7d42\u308f\u308a\u306b\u3057\u307e\u305b\u3093\u304b\uff1f\u00a0<\/a><\/strong><\/span><\/p>\r\n<a href=\"https:\/\/best-biostatistics.com\/kmhl\"><img class=\"aligncenter wp-image-2794 size-full\" src=\"https:\/\/best-biostatistics.com\/wp\/wp-content\/uploads\/2023\/11\/bn_r_03.png\" alt=\"\" width=\"500\" height=\"327\" \/><\/a>\r\n<p style=\"text-align: center;\"><span style=\"color: #ff0000; font-size: 20px;\"><strong><span class=\"marker2\">\u21911\u4e07\u4eba\u4ee5\u4e0a\u306e\u533b\u7642\u5f93\u4e8b\u8005\u304c\u8cfc\u8aad\u4e2d<\/span><\/strong><\/span><\/p><\/div><h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>IPTW \u3067\u91cd\u307f\u4ed8\u3051\u3092\u3057\u3066\u3001\u4ea4\u7d61\u56e0\u5b50\u8abf\u6574\u3092\u884c\u3063\u305f Cox \u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u305f<\/p>\n\n\n\n<p>IPTW \u306f\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u3057\u3066\u3001R \u306e coxphw \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u8a08\u7b97\u3067\u304d\u308b<\/p>\n\n\n\n<p>\u53c2\u8003\u306b\u306a\u308c\u3070<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IPTW \u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051 Cox \u56de\u5e30\u3092 R \u3067\u884c\u3046\u65b9\u6cd5<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,5,21],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-iptw-","category-r","category-21"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":1,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":918,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/79\/revisions\/918"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}