{"id":27,"date":"2024-06-09T21:46:53","date_gmt":"2024-06-09T12:46:53","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/multiple-imputation-iptw-cox-bootstrap-ci-in-r\/"},"modified":"2025-03-04T11:18:16","modified_gmt":"2025-03-04T02:18:16","slug":"multiple-imputation-iptw-cox-bootstrap-ci-in-r","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/multiple-imputation-iptw-cox-bootstrap-ci-in-r\/","title":{"rendered":"R \u3067\u591a\u91cd\u4ee3\u5165 IPTW Cox \u56de\u5e30 \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u8aac\u660e\u5909\u6570\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u751f\u5b58\u6642\u9593\u30c7\u30fc\u30bf\u3067\u3001\u3044\u304f\u3064\u304b\u306e\u8aac\u660e\u5909\u6570\u306b\u6b20\u640d\u5024\u304c\u3042\u308a\u3001\u591a\u91cd\u4ee3\u5165\u3057\u3066 IPTW Cox \u56de\u5e30\u5206\u6790\u304c\u3057\u305f\u3044\u5834\u5408\u3001R \u3067\u3069\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\u304b<\/p>\n\n\n\n<p>IPTW Cox \u56de\u5e30\u306e\u5834\u5408\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u304c\u3088\u308a\u9069\u5207\u3067\u3042\u308b\u304c\u3001\u305d\u308c\u306f\u3069\u3046\u3084\u308b\u304b<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u591a\u91cd\u4ee3\u5165\u3068\u306f\">\u591a\u91cd\u4ee3\u5165\u3068\u306f<\/h2>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u3001\u6b20\u640d\u5024\u304c\u3042\u308a\u3001\u6b20\u640d\u5024\u51e6\u7406\u3068\u3057\u3066\u591a\u91cd\u4ee3\u5165\u3092\u63a1\u7528\u3057\u305f\u3044\u3068\u304d\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u591a\u91cd\u4ee3\u5165\u3068\u306f\u3001\u3044\u304f\u3064\u304b\u9069\u5207\u3068\u601d\u308f\u308c\u308b\u6570\u5024\u3067\u3001\u6b20\u640d\u5024\u3092\u88dc\u5b8c\u3057\u3066\u3001\u3072\u3068\u3064\u3067\u306f\u306a\u304f\u3001\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/p>\n\n\n\n<p>\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304b\u3089\u8a08\u7b97\u3057\u305f\u7d50\u679c\u3092\u7d71\u5408\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3042\u308b<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u53c2\u7167\u306e\u3053\u3068<\/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\/multiple-imputation-in-ezr\/\">EZR \u3067\u591a\u91cd\u4ee3\u5165\u6cd5\u3092\u884c\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">EZR \u3067\u591a\u91cd\u4ee3\u5165\u6cd5\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306b\u3057\u305f\u3089\u3088\u3044\u304b EZR \u306b\u306f\u3001\u591a\u91cd\u4ee3\u5165\u306e\u30e1\u30cb\u30e5\u30fc\u306f\u306a\u3044\u304c\u3001R \u30b9\u30af\u30ea\u30d7\u30c8\u67a0\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u304f\u65b9\u6cd5\u3067\u5b9f\u884c\u3067\u304d\u308b \u306f\u3058\u3081\u306b &#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-\u6cd5\u3068\u306f\">IPTW \u6cd5\u3068\u306f<\/h2>\n\n\n\n<p>\u6bd4\u8f03\u3059\u308b\u7fa4\u9593\u306e\u4ea4\u7d61\u56e0\u5b50\u306e\u8abf\u6574\u65b9\u6cd5\u306e\u4e00\u3064\u3067\u3001\u50be\u5411\u30b9\u30b3\u30a2\u306e\u9006\u6570\u3092\u91cd\u307f\u3068\u3057\u3066\u3001\u4eba\u6570\u3092\u304b\u3055\u307e\u3057\u3057\u3066\u8a08\u7b97\u3059\u308b\u65b9\u6cd5<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u6e2c\u5b9a\u3067\u304d\u3066\u3044\u308b\u4ea4\u7d61\u56e0\u5b50\u306b\u9650\u3063\u3066\u306f\u3001\u3042\u305f\u304b\u3082\u7fa4\u9593\u3067\u305d\u308d\u3063\u3066\u3044\u308b\u3001\u3064\u307e\u308a\u306f\u3001\u4ea4\u7d61\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u72b6\u614b\u3092\u4f5c\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u6e2c\u5b9a\u3067\u304d\u3066\u3044\u308b\u5909\u6570\u306e\u307f\u3067\u3042\u3063\u3066\u3001\u672a\u77e5\u30fb\u672a\u6e2c\u5b9a\u306e\u4ea4\u7d61\u56e0\u5b50\u306f\u8abf\u6574\u3067\u304d\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30e9\u30f3\u30c0\u30e0\u5316\u6bd4\u8f03\u8a66\u9a13\u3068\u540c\u7b49\u306b\u306f\u306a\u3089\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u53c2\u7167\u306e\u3053\u3068<\/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\n\n\n\n\n<div id=\"biost-4127646154\" 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=\"IPTW-Cox-\u56de\u5e30\u3068\u306f\">IPTW Cox \u56de\u5e30\u3068\u306f<\/h2>\n\n\n\n<p>IPTW \u3067\u91cd\u307f\u4ed8\u3051\u3057\u305f\u3001Cox \u56de\u5e30\u5206\u6790\u306e\u3053\u3068<\/p>\n\n\n\n<p>Cox \u56de\u5e30\u306f\u3001Cox \u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u3092\u7528\u3044\u305f\u56de\u5e30\u5206\u6790\u306e\u3053\u3068<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u53c2\u7167\u306e\u3053\u3068<\/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\/iptw-cox-regression-in-r\/\">R \u3067 IPTW Cox \u56de\u5e30\u3092\u884c\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">IPTW \u9006\u78ba\u7387\u91cd\u307f\u4ed8\u3051 Cox \u56de\u5e30\u3092 R \u3067\u884c\u3046\u65b9\u6cd5 IPTW Cox \u56de\u5e30\u306e\u524d\u63d0 IPTW \u306b\u95a2\u3057\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u7167 IPTW \u306f\u3059\u3067\u306b\u4f5c\u6210\u6e08\u307f\u3068\u3044\u3046\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u308b IPTW \u306f\u3001EZR &#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=\"\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3068\u306f\">\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3068\u306f<\/h2>\n\n\n\n<p>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u306f\u3001\u4eca\u56de\u5f97\u3089\u308c\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u6d3b\u7528\u3057\u3066\u3001\u5fa9\u5143\u62bd\u51fa\uff08\u62bd\u51fa\u3057\u3066\u306f\u623b\u3059\u3092\u7e70\u308a\u8fd4\u3059\u306e\u3067\u3001\u540c\u3058\u30c7\u30fc\u30bf\u304c\u62bd\u51fa\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308b\uff09\u3092\u7e70\u308a\u8fd4\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u3068\u540c\u3058\u5927\u304d\u3055\u306e\u7591\u4f3c\u30b5\u30f3\u30d7\u30eb\u3092\u591a\u6570\u4f5c\u6210\u3057\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u7fa4\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u70b9\u63a8\u5b9a\u5024\u306e\u5206\u5e03\u304b\u3089\u8a08\u7b97\u3055\u308c\u305f\u4fe1\u983c\u533a\u9593\u306e\u3053\u3068\u3067\u3042\u308b<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u53c2\u7167\u306e\u3053\u3068<\/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\/bootstrap-logistic-regression-analysis-in-ezr\/\">R \u3067\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7 \u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u5206\u6790\u3092\u884c\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3068\u306f\u3001\u5c0f\u3055\u3044\u30b5\u30f3\u30d7\u30eb\u3092\u5fa9\u5143\u62bd\u51fa\u3067\u4f55\u5ea6\u3082\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3057\u3066\u3001\u7591\u4f3c\u7684\u306b\u4f55\u5ea6\u3082\u8a66\u884c\u3057\u305f\u3053\u3068\u306b\u3057\u3066\u3001\u305d\u306e\u7d50\u679c\u304b\u3089\u63a8\u5b9a\u5024\u306e\u76f4\u63a5\u7684\u306a95\uff05\u306e\u7bc4\u56f2\u3092\u6c42\u3081\u305f\u308a\u3059&#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=\"\u591a\u91cd\u4ee3\u5165-IPTW-Cox-\u56de\u5e30-\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u306e\u8a08\u7b97\u65b9\u6cd5\">\u591a\u91cd\u4ee3\u5165 IPTW Cox \u56de\u5e30 \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u306e\u8a08\u7b97\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u793a\u3059<\/p>\n\n\n\n<p>\u5168\u4f53\u306e\u6d41\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6b20\u640d\u5024\u3092\u542b\u3080\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6e96\u5099\u3059\u308b<\/li>\n\n\n\n<li>mice \u30d1\u30c3\u30b1\u30fc\u30b8\u306e mice \u95a2\u6570\u3067\u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>MatchThem \u30d1\u30c3\u30b1\u30fc\u30b8\u306e weightthem \u95a2\u6570\u3067 IPTW \u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u3044\u3063\u305f\u3093\u3001\u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u305f\u66ab\u5b9a\u7684\u306a IPTW Cox \u56de\u5e30\u3092\u884c\u3046\uff08IPTW \u306b\u5bfe\u5fdc\u3057\u305f\u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\u3068\u3044\u3046\u3082\u306e\u304c\u8a08\u7b97\u3055\u308c\u308b\uff09<\/li>\n\n\n\n<li>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u8a08\u7b97\u306e\u305f\u3081\u306b\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7528\u3044\u305f Cox \u56de\u5e30\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\uff08cox_reg\uff09<\/li>\n\n\n\n<li>\u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6e96\u5099\u3059\u308b\uff08imp1 ~ imp5\uff09<\/li>\n\n\n\n<li>\u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u4e00\u3064\u4e00\u3064\u306b\u5bfe\u3057\u3066\u3001boot \u30d1\u30c3\u30b1\u30fc\u30b8\u306e boot \u95a2\u6570\u306b\u3088\u3063\u3066\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u6cd5\u3092\u5b9f\u884c\u3059\u308b<\/li>\n\n\n\n<li>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u7d50\u679c\u3092\u683c\u7d0d\u3059\u308b\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u7d50\u679c\u3092\u53d6\u308a\u51fa\u3059<\/li>\n\n\n\n<li>\u63a8\u5b9a\u5024\u3068\u6a19\u6e96\u8aa4\u5dee\u3092\u5143\u306b\u7d71\u5408\u63a8\u5b9a\u5024\u3068\u7d71\u5408\u4fe1\u983c\u533a\u9593\u306e\u8a08\u7b97<\/li>\n\n\n\n<li>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u51fa\u529b<\/li>\n\n\n\n<li>\u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\u3068\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u4e26\u3079\u3066\u6bd4\u8f03<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code># \u6b20\u640d\u5024\u3092\u542b\u3080\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6e96\u5099\u3059\u308b\n# ph.ecog01, meal.cal, wt.loss\uff1a\u6b20\u640d\u5024\u542b\u3080\ndf0 &lt;- df&#91;,c(\"time\", \"status01\", \"ph.ecog01\", \"age\", \"sex\",\n             \"meal.cal\", \"wt.loss\")]\n# mice \u30d1\u30c3\u30b1\u30fc\u30b8\u306e mice \u95a2\u6570\u3067\u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\n# (\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u6570 m=5)\uff1a\u672c\u5f53\u306f\u5c11\u306a\u304f\u3068\u3082 m=100 \u304c\u3088\u3044\nlibrary(mice)\ndf_imputed &lt;- mice(df0, seed=0)\ndf_imputed\n# MatchThem \u30d1\u30c3\u30b1\u30fc\u30b8\u306e weightthem \u95a2\u6570\u3067 IPTW \u3092\u4f5c\u6210\u3059\u308b\nlibrary(MatchThem)\nweighted_imputed &lt;- weightthem(ph.ecog01 ~ age + factor(sex) +\n                                 meal.cal + wt.loss, data=df_imputed)\nsummary(weighted_imputed)\n# \u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u305f\u66ab\u5b9a\u7684\u306a IPTW Cox \u56de\u5e30\u3092\u884c\u3046\n#\uff08\u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\uff09\nlibrary(survival)\nwi_iptw_cox &lt;- with(weighted_imputed,\n                    coxph(Surv(time, status01) ~\n                            ph.ecog01 + age + factor(sex) +\n                            meal.cal + wt.loss,\n                          weights=weights,\n                          robust=TRUE\n                    ))\n## \u7d71\u5408\npooled_wi_iptw_cox &lt;- pool(wi_iptw_cox)\nsummary(pooled_wi_iptw_cox, conf.int=TRUE, exponentiate = TRUE)\n# \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u8a08\u7b97\u306e\u305f\u3081\u306b\u3001\n# \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7528\u3044\u305f Cox \u56de\u5e30\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\n# cox_reg \u95a2\u6570: \u7279\u5b9a\u306e\u5b8c\u5168\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5bfe\u3057\u3066\n# Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u3092\u9069\u7528\u3057\u3001\u56de\u5e30\u4fc2\u6570\u3092\u8fd4\u3059\u95a2\u6570\ncox_reg &lt;- function(data, indices)\n  # \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u6a19\u672c\u306e\u62bd\u51fa\n  data &lt;- data&#91;indices,]\n# Cox\u6bd4\u4f8b\u30cf\u30b6\u30fc\u30c9\u30e2\u30c7\u30eb\u306e\u9069\u7528\nfit &lt;- with(data,\n            coxph(Surv(time, status01) ~\n                    ph.ecog01 + age + factor(sex) +\n                    meal.cal + wt.loss, weights=weights,\n                  robust=TRUE\n            ))\n# \u30cf\u30b6\u30fc\u30c9\u6bd4\u306e\u63a8\u5b9a\u5024\u3092\u8fd4\u3059\nreturn(coef(fit))\n}\n# \u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6e96\u5099\u3059\u308b\n# imps \u30d9\u30af\u30c8\u30eb: \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u306e\u5404\u8a66\u884c\u3067\u4f7f\u7528\u3059\u308b\n# \u5b8c\u5168\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u8b58\u5225\u5b50(m=1~5 \u307e\u3067)\nimps &lt;- paste0(\"imp\", 1:weighted_imputed$object$m)\n# \u591a\u91cd\u4ee3\u5165\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u4e00\u3064\u4e00\u3064\u306b\u5bfe\u3057\u3066\u3001\n# boot \u30d1\u30c3\u30b1\u30fc\u30b8\u306e boot \u95a2\u6570\u306b\u3088\u3063\u3066\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u6cd5\u3092\u5b9f\u884c\u3059\u308b\nlibrary(boot)\nfor (imp_name in imps){\n  # \u5b8c\u5168\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u4f5c\u6210\n  imp &lt;- complete(weighted_imputed,\n                  action = as.numeric(substr(imp_name, 4, 6)))\n  result &lt;- cox_reg(data=imp, indices=1:nrow(df0))\n  set.seed(0)\n  boot_res &lt;- boot(\n    data = imp,\n    statistic = cox_reg,\n    # \u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u56de\u6570\uff1a10000 \u306e\u307b\u3046\u304c\u3088\u3044\u304c\u53d6\u308a\u6025\u304e 1000\n    R = 1000\n  )\n  print(boot_res)\n  # \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u7d50\u679c\u3092\u4fdd\u5b58\n  assign(paste(\"boot_res_\", imp_name, sep=\"\"), boot_res)\n}\n# \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u306e\u7d50\u679c\u3092\u683c\u7d0d\u3059\u308b\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\nboot_res_lists &lt;- lapply(paste0(\"boot_res_imp\",\n                                1:weighted_imputed$object$m), get)\n# \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u7d50\u679c\u3092\u53d6\u308a\u51fa\u3059\n## \u63a8\u5b9a\u5024\u3068\u6a19\u6e96\u8aa4\u5dee\u306e\u30d9\u30af\u30c8\u30eb\u3092\u521d\u671f\u5316\nestimates &lt;- c()\nvariances &lt;- c()\n## for\u30eb\u30fc\u30d7\u3067\u5404\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u306e\u7d50\u679c\u3092\u51e6\u7406\nfor (i in 1:5) {\n  m &lt;- mean(boot_res_lists&#91;&#91;i]]$t&#91;, 1])\n  se &lt;- sd(boot_res_lists&#91;&#91;i]]$t&#91;, 1])\n  estimates &lt;- c(estimates, m)\n  variances &lt;- c(variances, se^2)\n}\n# \u63a8\u5b9a\u5024\u3068\u6a19\u6e96\u8aa4\u5dee\u3092\u5143\u306b\u7d71\u5408\u63a8\u5b9a\u5024\u3068\u4fe1\u983c\u533a\u9593\u306e\u8a08\u7b97\npool &lt;- pool.scalar(Q = estimates, U = variances, n = nrow(df0))\n## \u30d7\u30fc\u30eb\u6a19\u6e96\u8aa4\u5dee\u3092\u8a08\u7b97\n## t1* (ph.ecog01) \u306e SE \u306e\u7d71\u5408\npooled_se &lt;- sqrt(pool$ubar)\n## \u7d71\u5408\u63a8\u5b9a\u5024\u306e\u53d6\u308a\u51fa\u3057\npooled_m &lt;- pool$qbar\n## 95 \uff05\u4fe1\u983c\u533a\u9593\u306e\u8a08\u7b97\nLL &lt;- pooled_m - qnorm(0.975)*pooled_se\nUL &lt;- pooled_m + qnorm(0.975)*pooled_se\n# \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u51fa\u529b\noutput &lt;- c(pooled_m, LL, UL)\nnames(output) &lt;- c(\"Estimate\", \"LowerLimit\", \"UpperLimit\")\n## \u5bfe\u6570\u30cf\u30b6\u30fc\u30c9\u6bd4\u3068\u4fe1\u983c\u533a\u9593\noutput\n## \u771f\u6570\u306b\u3057\u305f\u30cf\u30b6\u30fc\u30c9\u6bd4\u3068\u4fe1\u983c\u533a\u9593\nexp(output)\n# \u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\u3068\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u4e26\u3079\u3066\u6bd4\u8f03\n## \u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\nsummary(pooled_wi_iptw_cox, conf.int=TRUE,\n        exponentiate=TRUE)&#91;1,c(2,7,8)]\n## \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\nexp(output)<\/code><\/pre>\n\n\n\n<p>\u7d50\u679c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u308b<\/p>\n\n\n\n<p>\u66ab\u5b9a\u7684\u306a\u7d50\u679c\uff08\u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\uff09\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"948\" height=\"162\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609212649.png\" alt=\"\" class=\"wp-image-759\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609212649.png 948w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609212649-300x51.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609212649-768x131.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u7740\u76ee\u3057\u3066\u3044\u308b ph.ecog01 \u306e\u4ea4\u7d61\u56e0\u5b50\u306e\u63a8\u5b9a\u5024\u3082\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/p>\n\n\n\n<p>IPTW \u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u305f\u4ea4\u7d61\u56e0\u5b50\u3092\u3001\u518d\u5ea6\u5171\u5909\u91cf\u3068\u3057\u3066\u6295\u5165\u3057\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"382\" height=\"186\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213314.png\" alt=\"\" class=\"wp-image-760\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213314.png 382w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213314-300x146.png 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u30ed\u30d0\u30b9\u30c8\u4fe1\u983c\u533a\u9593\u3068\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u3092\u4e26\u3079\u3066\u307f\u308b\u3068\u3001\u5c11\u3057\u7570\u306a\u308b\u306e\u304c\u308f\u304b\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"801\" height=\"202\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213335.png\" alt=\"\" class=\"wp-image-761\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213335.png 801w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213335-300x76.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240609213335-768x194.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u591a\u91cd\u4ee3\u5165 IPTW Cox \u56de\u5e30 \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593 \u306e\u4e00\u9023\u306e\u8a08\u7b97\u3092 R \u3067\u306f\u3069\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3051\u3070\u5b9f\u73fe\u3067\u304d\u308b\u304b\u306e\u4f8b\u3092\u6319\u3052\u305f<\/p>\n\n\n\n<p>\u4e00\u3064\u3067\u5b8c\u7d50\u3059\u308b\u95a2\u6570\u306f\u306a\u3044\u306e\u3067\u3001\u3044\u304f\u3064\u304b\u306e\u95a2\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u4f55\u3089\u304b\u53c2\u8003\u306b\u306a\u308c\u3070<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u53c2\u8003\u6587\u732e\">\u53c2\u8003\u6587\u732e<\/h3>\n\n\n\n<p><a href=\"https:\/\/pubmed.ncbi.nlm.nih.gov\/27549016\/\">Variance estimation when using inverse probability of treatment weighting (IPTW) with survival analysis<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8aac\u660e\u5909\u6570\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u751f\u5b58\u6642\u9593\u30c7\u30fc\u30bf\u3067\u3001\u3044\u304f\u3064\u304b\u306e\u8aac\u660e\u5909\u6570\u306b\u6b20\u640d\u5024\u304c\u3042\u308a\u3001\u591a\u91cd\u4ee3\u5165\u3057\u3066 IPTW Cox \u56de\u5e30\u5206\u6790\u304c\u3057\u305f\u3044\u5834\u5408\u3001R \u3067\u3069\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\u304b IPTW Cox \u56de\u5e30\u306e\u5834\u5408\u3001\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u4fe1\u983c\u533a\u9593\u304c\u3088\u308a\u9069 [&hellip;]<\/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,22,20],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-iptw-","category-r","category-21","category-22","category-20"],"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\/27","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=27"}],"version-history":[{"count":4,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":3539,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/27\/revisions\/3539"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}