{"id":184,"date":"2023-01-30T22:39:04","date_gmt":"2023-01-30T13:39:04","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/iptw-weighted-cumulative-incidence-curve-in-r\/"},"modified":"2024-09-01T11:08:26","modified_gmt":"2024-09-01T02:08:26","slug":"iptw-weighted-cumulative-incidence-curve-in-r","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/iptw-weighted-cumulative-incidence-curve-in-r\/","title":{"rendered":"R \u3067 IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u3092\u66f8\u304f\u65b9\u6cd5"},"content":{"rendered":"\n<p>IPTW \u3067\u91cd\u307f\u4ed8\u3051\u3057\u305f\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u66f2\u7dda\u3092\u66f8\u304f\u65b9\u6cd5<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IPTW-\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9\u306e\u524d\u306b-IPTW\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u66f2\u7dda\u3068\u306f\">IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9\u306e\u524d\u306b IPTW\u3001\u7af6\u5408\u30ea\u30b9\u30af\u3001\u7d2f\u7a4d\u767a\u751f\u66f2\u7dda\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>IPTW \u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u904e\u53bb\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\n\n\n\n\n<p>\u7af6\u5408\u30ea\u30b9\u30af\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u904e\u53bb\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\/2019\/08\/20190814203803-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\/competing-risk-analysis-gray-test-in-r\/\">R \u3067\u7af6\u5408\u30ea\u30b9\u30af\u5206\u6790 Gray \u691c\u5b9a\u3092\u884c\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u7af6\u5408\u30ea\u30b9\u30af\u3068\u306f\u4f55\u304b\uff1f Gray \u691c\u5b9a\u306e\u5b9f\u884c\u65b9\u6cd5 \u7af6\u5408\u30ea\u30b9\u30af\u3068\u306f\uff1f \u518d\u767a\u304c\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u3042\u3063\u305f\u304c\u3001\u518d\u767a\u3059\u308b\u524d\u306b\u6b7b\u4ea1\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u89b3\u5bdf\u3067\u304d\u306a\u304b\u3063\u305f\u3002 \u8133\u6897\u585e\u306e\u767a\u73fe\u304c&#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<p>\u7d2f\u7a4d\u767a\u751f\u7387\uff08\u7d2f\u7a4d\u30a4\u30d9\u30f3\u30c8\uff09\u66f2\u7dda\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u904e\u53bb\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\/2018\/07\/20200624230926-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-kaplan-meier-curve\/\">R \u3068 EZR \u3067\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\">\u30ab\u30d7\u30e9\u30f3\u30de\u30a4\u30e4\u30fc\u66f2\u7dda\u306e\u66f8\u304d\u65b9 R \u3068 EZR \u306e\u65b9\u6cd5\u3002 \u30ab\u30d7\u30e9\u30f3\u30de\u30a4\u30e4\u30fc\u66f2\u7dda\u306e\u66f8\u304d\u65b9\u8aac\u660e\u306e\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf \u30ab\u30d7\u30e9\u30f3\u30de\u30a4\u30e4\u30fc\u66f2\u7dda\u3092\u63cf\u304d\u305f\u3044\u5834\u5408\u3001\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u306e\u30c7\u30fc&#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-\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9\">IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9<\/h2>\n\n\n\n<p>R \u306e cmprskcoxmsm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"synIdentifier\">install.packages<\/span><span class=\"synSpecial\">(<\/span><span class=\"synConstant\">'cmprskcoxmsm'<\/span><span class=\"synSpecial\">)<\/span>\n<span class=\"synPreProc\">library<\/span><span class=\"synSpecial\">(<\/span>cmprskcoxmsm<span class=\"synSpecial\">)<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306f\u540c\u3058\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308b follic \u3068\u3044\u3046\u30c7\u30fc\u30bf<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u5909\u6570\u304c\u5165\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>age<\/strong> \u5e74\u9f62<\/li>\n\n\n\n<li><strong>hgb<\/strong> \u30d8\u30e2\u30b0\u30ed\u30d3\u30f3\u5024\uff08 g\/L \uff09<\/li>\n\n\n\n<li><strong>clinstg<\/strong> \u81e8\u5e8a\u30b9\u30c6\u30fc\u30b8\uff1a 1= \u30b9\u30c6\u30fc\u30b8 I \u30012= \u30b9\u30c6\u30fc\u30b8 II<\/li>\n\n\n\n<li><strong>ch<\/strong> \u5316\u5b66\u7642\u6cd5\uff1a Y= \u5b9f\u65bd\u3042\u308a\u3001N= \u5b9f\u65bd\u306a\u3057<\/li>\n\n\n\n<li><strong>rt<\/strong> \u653e\u5c04\u7dda\u7642\u6cd5\uff1a\u5168\u54e1 Y= \u5b9f\u65bd\u3042\u308a \u306e\u305f\u3081\u4eca\u56de\u306f\u4f7f\u308f\u305a<\/li>\n\n\n\n<li><strong>time<\/strong> \u6700\u521d\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u8d77\u304d\u305f\u6642\u9593<\/li>\n\n\n\n<li><strong>status<\/strong> \u30a4\u30d9\u30f3\u30c8\u306e\u7406\u7531\uff1a 1= \u518d\u71c3\u30012= \u6b7b\u4ea1\u30010= \u7121\u52b9<\/li>\n<\/ul>\n\n\n\n<div id=\"biost-2489666\" 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-\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9-IPTW-\u306e\u8a08\u7b97\">IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9 IPTW \u306e\u8a08\u7b97<\/h2>\n\n\n\n<p>IPTW \u306e\u8a08\u7b97\u306b\u306f\u3001doPS() \u95a2\u6570\u3092\u4f7f\u3046<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u3001\u6cbb\u7642\uff08\u4e8c\u5024\u306e\u307f\u3002\u3053\u3053\u3067\u306f\u5316\u5b66\u7642\u6cd5 ch\uff09\u3001\u6cbb\u7642\u306e\u3042\u308a\u306e\u5024\u3001IPTW \u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u4ea4\u7d61\u56e0\u5b50\u3092\u5f15\u6570\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>D <span class=\"synStatement\">&lt;-<\/span> <span class=\"synIdentifier\">doPS<\/span><span class=\"synSpecial\">(<\/span>follic<span class=\"synSpecial\">,<\/span> Trt<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'ch'<\/span><span class=\"synSpecial\">,<\/span> Trt.name<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'Y'<\/span><span class=\"synSpecial\">,<\/span>\nVARS.<span class=\"synStatement\">=<\/span><span class=\"synIdentifier\">c<\/span><span class=\"synSpecial\">(<\/span><span class=\"synConstant\">'age'<\/span><span class=\"synSpecial\">,<\/span> <span class=\"synConstant\">'hgb'<\/span><span class=\"synSpecial\">,<\/span> <span class=\"synConstant\">'clinstg'<\/span><span class=\"synSpecial\">))<\/span>\n<\/code><\/pre>\n\n\n\n<p>IPTW \u306e\u8a08\u7b97\u7d50\u679c\u304c\u542b\u307e\u308c\u308b\u3001D \u306e\u5148\u982d 5 \u884c\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3042\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"264\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130220739-1024x264.png\" alt=\"\" class=\"wp-image-1070\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130220739-1024x264.png 1024w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130220739-300x77.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130220739-768x198.png 768w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130220739.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>ps_ate \u304c \u50be\u5411\u30b9\u30b3\u30a2\u3067\u3001ipw_ate_unstab \u304c \u50be\u5411\u30b9\u30b3\u30a2\u306e\u9006\u6570\u3092\u3068\u308b\u3060\u3051\u306e \u3044\u308f\u3086\u308b IPTW\u3001ipw_ate_stab \u304c\u7fa4\u306e\u5272\u5408\u3092\u304b\u3051\u305f\u5b89\u5b9a\u5316 IPTW \u3067\u3042\u308b<\/p>\n\n\n\n<p>IPTW \u3067\u4ea4\u7d61\u56e0\u5b50\u304c\u3069\u306e\u304f\u3089\u3044\u4f3c\u901a\u3063\u305f\u5206\u5e03\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001plot.PS() \u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"synIdentifier\">plot.PS<\/span><span class=\"synSpecial\">(<\/span>D<span class=\"synSpecial\">)<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30b0\u30e9\u30d5\u304c\u63cf\u304b\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"672\" height=\"672\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130215844.png\" alt=\"\" class=\"wp-image-1071\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130215844.png 672w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130215844-300x300.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130215844-150x150.png 150w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u4ea4\u7d61\u56e0\u5b50\u3068\u8003\u3048\u305f\u3001age, hgb, clinstg \u306e\uff13\u3064\u3068\u3082\u3001weighted \u306e\u307b\u3046\u304c Standard Mean Difference \u306b\u3057\u3066 -0.1 \u304b\u3089 0.1 \u306e\u7bc4\u56f2\u306b\u53ce\u307e\u3063\u3066\u3044\u3066\u3001\u91cd\u307f\u3065\u3051\u306f\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IPTW-\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9-\u7d2f\u7a4d\u767a\u751f\u7387\u306e\u63a8\u5b9a\">IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9 \u7d2f\u7a4d\u767a\u751f\u7387\u306e\u63a8\u5b9a<\/h2>\n\n\n\n<p>\u6b21\u306b\u3001cif_est() \u95a2\u6570\u3092\u4f7f\u3063\u3066\u3001IPTW \u7d2f\u7a4d\u767a\u751f\u7387\u3092\u63a8\u5b9a\u3059\u308b<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u3001\u30a4\u30d9\u30f3\u30c8\u307e\u3067\u306e\u6642\u9593\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u5909\u6570\u540d\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u5024\u306e\u7a2e\u985e\u3001\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u6ce8\u76ee\u3059\u308b\u304b\u3001\u91cd\u307f\u3065\u3051\u306e\u7a2e\u985e \u3092\u6307\u5b9a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CIF <span class=\"synStatement\">&lt;-<\/span> <span class=\"synIdentifier\">cif_est<\/span><span class=\"synSpecial\">(<\/span>data<span class=\"synStatement\">=<\/span>D<span class=\"synSpecial\">$<\/span>Data<span class=\"synSpecial\">,<\/span> time<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'time'<\/span><span class=\"synSpecial\">,<\/span> Event.var<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'status'<\/span><span class=\"synSpecial\">,<\/span>\nEvents<span class=\"synStatement\">=<\/span><span class=\"synIdentifier\">c<\/span><span class=\"synSpecial\">(<\/span><span class=\"synConstant\">0<\/span><span class=\"synSpecial\">,<\/span><span class=\"synConstant\">1<\/span><span class=\"synSpecial\">,<\/span><span class=\"synConstant\">2<\/span><span class=\"synSpecial\">),<\/span>\ncif.event<span class=\"synStatement\">=<\/span><span class=\"synConstant\">1<\/span><span class=\"synSpecial\">,<\/span>\nweight.type<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'Unstabilized'<\/span><span class=\"synSpecial\">)<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u63a8\u5b9a\u306b\u306f\u6570\u5206\u6642\u9593\u304c\u304b\u304b\u3063\u305f\uff08CPU: Ryzen 3 3300X 4 \u30b3\u30a2 8 \u30b9\u30ec\u30c3\u30c9\uff09<\/p>\n\n\n\n<p>\u51fa\u6765\u4e0a\u304c\u308a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5148\u982d 5 \u884c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3042\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"211\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222001-1024x211.png\" alt=\"\" class=\"wp-image-1072\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222001-1024x211.png 1024w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222001-300x62.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222001-768x158.png 768w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222001.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u3053\u306e\u4e2d\u306e\u3001time, cif.control\uff08\u5316\u5b66\u7642\u6cd5\u306a\u3057\uff09, cif.expsure\uff08\u5316\u5b66\u7642\u6cd5\u3042\u308a\uff09 \u3092\u4f7f\u3063\u3066\u3001IPTW \u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u3092\u66f8\u3044\u3066\u3044\u304f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"IPTW-\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda-\u5b9f\u969b\u306e\u63cf\u753b\">IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda \u5b9f\u969b\u306e\u63cf\u753b<\/h2>\n\n\n\n<p>ggplot() \u95a2\u6570\u3092\u4f7f\u3063\u3066\u66f8\u3044\u3066\u3044\u304f<\/p>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"synIdentifier\">ggplot<\/span><span class=\"synSpecial\">(<\/span>CIF<span class=\"synSpecial\">$<\/span>cif_data<span class=\"synSpecial\">,<\/span> <span class=\"synIdentifier\">aes<\/span><span class=\"synSpecial\">(<\/span>x<span class=\"synStatement\">=<\/span>time<span class=\"synSpecial\">,<\/span> y<span class=\"synStatement\">=<\/span>cif.control<span class=\"synSpecial\">,<\/span>\ncolor<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'No Chemotherapy'<\/span><span class=\"synSpecial\">))<\/span><span class=\"synStatement\">+<\/span>\n<span class=\"synIdentifier\">geom_line<\/span><span class=\"synSpecial\">(<\/span>linewidth<span class=\"synStatement\">=<\/span><span class=\"synConstant\">1.4<\/span><span class=\"synSpecial\">)<\/span><span class=\"synStatement\">+<\/span>\n<span class=\"synIdentifier\">geom_line<\/span><span class=\"synSpecial\">(<\/span><span class=\"synIdentifier\">aes<\/span><span class=\"synSpecial\">(<\/span>x<span class=\"synStatement\">=<\/span>time<span class=\"synSpecial\">,<\/span> y<span class=\"synStatement\">=<\/span>cif.exposure<span class=\"synSpecial\">,<\/span>\ncolor<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'Chemotherapy'<\/span><span class=\"synSpecial\">),<\/span> linewidth<span class=\"synStatement\">=<\/span><span class=\"synConstant\">1.4<\/span><span class=\"synSpecial\">)<\/span><span class=\"synStatement\">+<\/span>\n<span class=\"synIdentifier\">labs<\/span><span class=\"synSpecial\">(<\/span>x<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'Time'<\/span><span class=\"synSpecial\">,<\/span> y<span class=\"synStatement\">=<\/span><span class=\"synConstant\">'IPTW Cumulative incidence functuon'<\/span><span class=\"synSpecial\">)<\/span><span class=\"synStatement\">+<\/span>\n<span class=\"synIdentifier\">ylim<\/span><span class=\"synSpecial\">(<\/span><span class=\"synIdentifier\">c<\/span><span class=\"synSpecial\">(<\/span><span class=\"synConstant\">0<\/span><span class=\"synSpecial\">,<\/span><span class=\"synConstant\">1<\/span><span class=\"synSpecial\">))<\/span>\n<\/code><\/pre>\n\n\n\n<p>\u5316\u5b66\u7642\u6cd5\u306a\u3057\u306e\u66f2\u7dda\u3068\u3001\u5316\u5b66\u7642\u6cd5\u3042\u308a\u306e\u66f2\u7dda\u3092 geom_line() \u3092\u4f7f\u3063\u3066\u3001\u91cd\u306d\u3066\u63cf\u3044\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u7dda\u306e\u592a\u3055\u3092 linewidth=1.4 \u3068\u3057\u3066\u3001\u5c11\u3057\u592a\u304f\u3057\u3066\u3044\u308b<\/p>\n\n\n\n<p>labs() \u3067\u3001X \u8ef8\u3001 Y \u8ef8\u305d\u308c\u305e\u308c\u306b\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u3066\u3044\u308b<\/p>\n\n\n\n<p>Y \u8ef8\u306e\u7bc4\u56f2\u3092\u30010 \u304b\u3089 1 \u306b\u56fa\u5b9a\u3057\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b0\u30e9\u30d5\u304c\u63cf\u3051\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"822\" height=\"672\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130224044.png\" alt=\"\" class=\"wp-image-1073\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130224044.png 822w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130224044-300x245.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130224044-768x628.png 768w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u3053\u308c\u306f\u3001IPTW \u3067\u306f\u306a\u3044\u3001\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u3068\u6bd4\u3079\u308b\u3068\u3001\u5316\u5b66\u7642\u6cd5\u3042\u308a\u30fb\u306a\u3057\u306e\u9593\u9694\u304c\u82e5\u5e72\u5e83\u304f\u898b\u3048\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"672\" height=\"672\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222647.png\" alt=\"\" class=\"wp-image-1074\" title=\"\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222647.png 672w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222647-300x300.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130222647-150x150.png 150w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u518d\u767a\u3084\u4e88\u5f8c\u3092\u5de6\u53f3\u3059\u308b\u5e74\u9f62\u53ca\u3073\u81e8\u5e8a\u30b9\u30c6\u30fc\u30b8\u306e\u8abf\u6574\u304c\u5927\u304d\u306a\u610f\u7fa9\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u60f3\u50cf\u3059\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>IPTW \u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u7387\u66f2\u7dda\u306e\u66f8\u304d\u65b9\u3092 R \u306e cmprskcoxmsm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u89e3\u8aac\u3057\u305f<\/p>\n\n\n\n<p>\u53c2\u8003\u306b\u306a\u308c\u3070<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u53c2\u8003-PDF\">\u53c2\u8003 PDF<\/h2>\n\n\n\n<p><a href=\"https:\/\/cran.r-project.org\/web\/packages\/cmprskcoxmsm\/cmprskcoxmsm.pdf\">https:\/\/cran.r-project.org\/web\/packages\/cmprskcoxmsm\/cmprskcoxmsm.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IPTW \u3067\u91cd\u307f\u4ed8\u3051\u3057\u305f\u7af6\u5408\u30ea\u30b9\u30af\u7d2f\u7a4d\u767a\u751f\u66f2\u7dda\u3092\u66f8\u304f\u65b9\u6cd5<\/p>\n","protected":false},"author":2,"featured_media":1073,"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,37,52],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iptw-","category-r","category-37","category-52"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2023\/01\/20230130224044.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/184","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=184"}],"version-history":[{"count":2,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/184\/revisions\/1075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media\/1073"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}