{"id":59283,"date":"2024-06-17T07:52:07","date_gmt":"2024-06-16T23:52:07","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59283"},"modified":"2024-06-17T07:52:07","modified_gmt":"2024-06-16T23:52:07","slug":"%e4%b8%89%e5%88%86%e9%92%9f%e6%95%99%e4%bd%a0%e5%85%a5%e9%97%a8%e7%94%9f%e5%ad%98%e5%88%86%e6%9e%90%e4%b9%8bcox%e6%af%94%e4%be%8b%e9%a3%8e%e9%99%a9%e6%a8%a1%e5%9e%8b","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59283","title":{"rendered":"\u4e09\u5206\u949f\u6559\u4f60\u5165\u95e8\u751f\u5b58\u5206\u6790\u4e4bCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u4e09\u5206\u949f\u6559\u4f60\u5165\u95e8\u751f\u5b58\u5206\u6790\u4e4bCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\",\"time\":\"2023-07-12 19:00:12\",\"timeStamp\":\"1689159612\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247489936&#038;idx=2&#038;sn=1c36aed6b355a5f561c067c8d3ac8baa&#038;chksm=cf7c8955f80b0043bf905d3937ac207f420f370cba98fc87b278b75b5ad29b2b190efa4eefca#rd\" target=\"_blank\" rel=\"noopener\">\u4e09\u5206\u949f\u6559\u4f60\u5165\u95e8\u751f\u5b58\u5206\u6790\u4e4bCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u5e08\u59b9&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-07-12 19:00:12<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1aR\u8bed\u8a00\u5b66\u5f92<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484446&#038;idx=1&#038;sn=9f900a1feec34f333e47444972cc5847\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484446&#038;idx=1&#038;sn=9f900a1feec34f333e47444972cc5847<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;letter-spacing: normal;white-space: normal;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);margin-bottom: 24px;\">\n<section powered-by=\"xiumi.us\" style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 20px;margin-bottom: 25px;\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(249, 172, 172);box-shadow: rgb(249, 172, 172) 0px 0px 5px 3px;\">\n<section powered-by=\"xiumi.us\" style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin-top: -14px;margin-bottom: -14px;\">\n<p>{ \u70b9\u51fb\u84dd\u5b57\uff0c\u5173\u6ce8\u6211\u4eec }<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<section style=\"font-size: 16px;\">\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\uff08Cox proportional hazards model\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u751f\u5b58\u5206\u6790\u65b9\u6cd5\uff0c\u7528\u4e8e\u8bc4\u4f30\u4e0d\u540c\u53d8\u91cf\u5bf9\u4e8e\u751f\u5b58\u65f6\u95f4\u7684\u9884\u6d4b\u80fd\u529b\u3002\u5b83\u662f\u7531David Cox\u4e8e1972\u5e74\u9996\u6b21\u63d0\u51fa\u7684\u3002Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u5728\u751f\u7269\u4fe1\u606f\u5b66\u4e2d\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u4e3b\u8981\u7528\u4e8e\u751f\u5b58\u5206\u6790\u548c\u9884\u6d4b\u3002\u5728\u751f\u5b58\u5206\u6790\u4e2d\uff0cCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u53ef\u4ee5\u7528\u4e8e\u8bc4\u4f30\u4e0d\u540c\u57fa\u56e0\u6216\u5176\u4ed6\u751f\u7269\u5b66\u56e0\u7d20\u5bf9\u751f\u5b58\u65f6\u95f4\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u764c\u75c7\u7814\u7a76\uff0c\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u6765\u63a2\u7d22\u4e0d\u540c\u57fa\u56e0\u8868\u8fbe\u6c34\u5e73\u4e0e\u764c\u75c7\u60a3\u8005\u751f\u5b58\u65f6\u95f4\u7684\u5173\u7cfb\uff0c\u5e76\u8bc6\u522b\u4e0e\u751f\u5b58\u65f6\u95f4\u76f8\u5173\u7684\u9884\u6d4b\u56e0\u5b50\u3002\u6b64\u5916\uff0cCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u8fd8\u53ef\u4ee5\u7528\u4e8e\u57fa\u4e8e\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u8fdb\u884c\u751f\u5b58\u9884\u6d4b\u3002\u4f8b\u5982\uff0c\u5728\u80bf\u7624\u7814\u7a76\u4e2d\uff0c\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u6839\u636e\u67d0\u4e9b\u57fa\u56e0\u7684\u8868\u8fbe\u6c34\u5e73\uff0c\u4f7f\u7528Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u6765\u9884\u6d4b\u60a3\u8005\u672a\u6765\u7684\u751f\u5b58\u65f6\u95f4\uff0c\u5e76\u8bc4\u4f30\u4e0d\u540c\u57fa\u56e0\u5bf9\u9884\u6d4b\u80fd\u529b\u7684\u8d21\u732e\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u533b\u751f\u4e3a\u60a3\u8005\u5236\u5b9a\u4e2a\u6027\u5316\u7684\u6cbb\u7597\u65b9\u6848\uff0c\u63d0\u9ad8\u6cbb\u7597\u6548\u679c\u3002\u5728\u751f\u7269\u4fe1\u606f\u5b66\u4e2d\uff0cCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u901a\u5e38\u4e0e\u9ad8\u901a\u91cf\u6570\u636e\u5206\u6790\u65b9\u6cd5\u76f8\u7ed3\u5408\uff0c\u5982\u57fa\u56e0\u82af\u7247\u3001RNA\u6d4b\u5e8f\u7b49\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8\u751f\u5b58\u5206\u6790\u548c\u9884\u6d4b\u7684\u51c6\u786e\u6027\u548c\u53ef\u9760\u6027\u3002<br  \/><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u57fa\u4e8e\u98ce\u9669\u6bd4\uff08hazard ratio\uff09\u7684\u6982\u5ff5\uff0c\u5373\u4e0d\u540c\u4e2a\u4f53\u4e4b\u95f4\u751f\u5b58\u65f6\u95f4\u7684\u6bd4\u8f83\u3002\u5b83\u5047\u8bbe\u751f\u5b58\u65f6\u95f4\u662f\u7531\u4e24\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u57fa\u51c6\u98ce\u9669\uff08baseline hazard\uff09\u548c\u53ef\u8c03\u6574\u98ce\u9669\uff08adjustable hazard\uff09\u3002\u5176\u4e2d\uff0c\u57fa\u51c6\u98ce\u9669\u662f\u6240\u6709\u4e2a\u4f53\u90fd\u5177\u6709\u7684\u98ce\u9669\uff0c\u53ef\u4ee5\u770b\u4f5c\u672a\u53d7\u5230\u4efb\u4f55\u5f71\u54cd\u7684\u57fa\u7840\u98ce\u9669\uff1b\u53ef\u8c03\u6574\u98ce\u9669\u662f\u4e2a\u4f53\u4e4b\u95f4\u4e0d\u540c\u7684\u98ce\u9669\uff0c\u53ef\u4ee5\u7531\u4e00\u4e9b\u53ef\u8c03\u6574\u7684\u534f\u53d8\u91cf\uff08covariates\uff09\u89e3\u91ca\u3002<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u7684\u57fa\u672c\u5f62\u5f0f\u4e3a:<\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">h(t|X) = h0(t) * <span class=\"code-snippet__built_in\">exp<\/span>(X\u03b2)<\/span><\/code><\/pre>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5176\u4e2d\uff0ch(t|X)\u662f\u5728\u7ed9\u5b9a\u534f\u53d8\u91cfX\u7684\u6761\u4ef6\u4e0b\uff0c\u65f6\u95f4t\u7684\u98ce\u9669\u6bd4\uff1bh0(t)\u662f\u65f6\u95f4t\u7684\u57fa\u51c6\u98ce\u9669\uff1bexp(X\u03b2)\u662f\u53ef\u8c03\u6574\u98ce\u9669\u7684\u6bd4\u7387\uff0c\u4e5f\u79f0\u4e3a\u534f\u53d8\u91cf\u7684\u98ce\u9669\u6bd4\uff08hazard ratio\uff09\uff1bX\u662f\u534f\u53d8\u91cf\u7684\u77e9\u9635\uff1b\u03b2\u662f\u534f\u53d8\u91cf\u7684\u7cfb\u6570\u5411\u91cf\u3002Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u7684\u6838\u5fc3\u5047\u8bbe\u662f\u534f\u53d8\u91cf\u7684\u98ce\u9669\u6bd4\u5728\u65f6\u95f4\u8f74\u4e0a\u662f\u6052\u5b9a\u7684\uff0c\u5373\u4e0d\u968f\u65f6\u95f4\u53d8\u5316\u3002<br  \/><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u90a3\u4e48\u73b0\u5728\u5c31\u8ba9\u5c0f\u5e08\u59b9\u5e26\u5927\u5bb6\u4e00\u8d77\u5728R\u4e2d\u5b9e\u8df5\u4e00\u4e0b\u5427\uff5e<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u6211\u4eec\u53ef\u4ee5\u5148\u5bf9\u6570\u636e\u505a\u4e00\u4e9b\u53ef\u89c6\u5316\uff0c\u4ee5\u68c0\u89c6\u5f97\u51fa\u7684\u7ed3\u679c\u548c\u76f4\u89c2\u4e0a\u7684\u6570\u636e\u662f\u5426\u4e00\u81f4<\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u6bd4\u5982\uff0c\u901a\u8fc7\u5c0f\u63d0\u7434\u56fe\u89c2\u5bdfX1\u5728\u4e0d\u540cstatus\u4e0b\u7684\u5206\u5e03\u60c5\u51b5<\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">ggplot(d, aes(x = factor(status), y = X1)) +<\/span><\/code><code><span class=\"code-snippet_outer\">geom_violin() +<\/span><\/code><code><span class=\"code-snippet_outer\">geom_boxplot(width = <span class=\"code-snippet__number\">0.1<\/span>, fill = <span class=\"code-snippet__string\">\"white\"<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\">labs(title = <span class=\"code-snippet__string\">\"Distribution of Age by Status\"<\/span>, x = <span class=\"code-snippet__string\">\"Status\"<\/span>, y = <span class=\"code-snippet__string\">\"X1\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.549074074074074\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_bajlhFnu1BIhFXlYpbNiaZBstRV2Ng.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tIF5g7e4AiaoB7icK5RrtrlmYMicjSibajlhFnu1BIhFXlYpbNiaZBstRV2Ng\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u7ed8\u5236\u6563\u70b9\u56fe\uff0c\u663e\u793aX2\u548c\u751f\u5b58\u65f6\u95f4\u7684\u5173\u7cfb<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">ggplot(d, aes(x = X2, y = time)) +<\/span><\/code><code><span class=\"code-snippet_outer\">geom_point() +<\/span><\/code><code><span class=\"code-snippet_outer\">geom_smooth(method = <span class=\"code-snippet__string\">\"lm\"<\/span>, se = <span class=\"code-snippet__literal\">FALSE<\/span>, color = <span class=\"code-snippet__string\">\"red\"<\/span>) +<\/span><\/code><code><span class=\"code-snippet_outer\">labs(title = <span class=\"code-snippet__string\">\"X2 vs. Survival Time\"<\/span>, x = <span class=\"code-snippet__string\">\"X2\"<\/span>, y = <span class=\"code-snippet__string\">\"Survival Time\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.549074074074074\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_c2YyfqWrw5bgXRusichRePmhwzJ9pA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tIMc4qedpMLcvm2b1h8gcqDYjn4ic2YyfqWrw5bgXRusichRePmhwzJ9pA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">## \u8f7d\u5165\u76f8\u5173\u7684\u5de5\u5177\u5305\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">## \u8f7d\u5165\u76f8\u5173\u7684\u5de5\u5177\u5305\uff1a<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">library(rms)<\/span><\/code><code><span class=\"code-snippet_outer\">library(riskRegression)<\/span><\/code><code><span class=\"code-snippet_outer\">library(survival)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">## \u4f7f\u7528 prodlim \u5305\u751f\u6210\u751f\u5b58\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">set.seed(<span class=\"code-snippet__number\">100<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">d &lt;- SimSurv(<span class=\"code-snippet__number\">100<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">## \u6784\u5efaCox\u56de\u5f52\u6a21\u578b\u5e76\u8ba1\u7b97\u9884\u6d4b\u751f\u5b58\u6982\u7387<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">coxmodel &lt;- cph(Surv(time, status) ~ X1 + X2, data = d, surv = <span class=\"code-snippet__literal\">TRUE<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">coxmodel<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5361216730038023\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_YfBa0icriaribUNat0V1AYNnkerm7Q.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tIYPxfmqZI2DC2zT6GEsSc6INYKYZYfBa0icriaribUNat0V1AYNnkerm7Q\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1052\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u8fd9\u4e2a\u7ed3\u679c\u4e2d\u7684\u6a21\u578b\u7cfb\u6570\u8868\u793a\u81ea\u53d8\u91cf\u5bf9\u751f\u5b58\u7387\u7684\u5f71\u54cd\uff0c\u7cfb\u6570\u8d8a\u5927\u8868\u793a\u5f71\u54cd\u8d8a\u5927\uff0c\u7cfb\u6570\u4e3a\u6b63\u8868\u793a\u8be5\u53d8\u91cf\u4e0e\u751f\u5b58\u7387\u6b63\u76f8\u5173\uff0c\u7cfb\u6570\u4e3a\u8d1f\u8868\u793a\u8be5\u53d8\u91cf\u4e0e\u751f\u5b58\u7387\u8d1f\u76f8\u5173\u3002\u5f53\u6a21\u578b\u7cfb\u6570\u663e\u8457\u65f6\uff0cP\u503c\u901a\u5e38\u5c0f\u4e8e0.05\uff0c\u8868\u793a\u53d8\u91cf\u5bf9\u751f\u5b58\u7387\u7684\u5f71\u54cd\u662f\u663e\u8457\u7684\uff1b\u5f53\u6a21\u578b\u7cfb\u6570\u4e0d\u663e\u8457\u65f6\uff0cP\u503c\u901a\u5e38\u5927\u4e8e0.05\uff0c\u8868\u793a\u53d8\u91cf\u5bf9\u751f\u5b58\u7387\u7684\u5f71\u54cd\u662f\u4e0d\u663e\u8457\u7684\u3002<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">## \u63d0\u53d6\u5728\u9009\u5b9a\u65f6\u95f4\u70b9\u7684\u9884\u6d4b\u751f\u5b58\u6982\u7387<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">ttt &lt;- quantile(d$time)<\/span><\/code><code><span class=\"code-snippet_outer\">ndat &lt;- data.frame(X1 = <span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__number\">0.25<\/span>, <span class=\"code-snippet__number\">0.25<\/span>, -<span class=\"code-snippet__number\">0.05<\/span>, <span class=\"code-snippet__number\">0.05<\/span>), X2 = <span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__number\">0<\/span>, <span class=\"code-snippet__number\">1<\/span>, <span class=\"code-snippet__number\">0<\/span>, <span class=\"code-snippet__number\">1<\/span>))<\/span><\/code><code><span class=\"code-snippet_outer\">predictSurvProb(coxmodel, newdata = ndat, times = ttt)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u9996\u5148\u4f7f\u7528quantile()\u51fd\u6570\u8ba1\u7b97\u539f\u59cb\u6570\u636e\u96c6d\u4e2d\u751f\u5b58\u65f6\u95f4\u53d8\u91cftime\u76845\u4e2a\u5206\u4f4d\u6570\uff0c\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u5411\u91cfttt\u4e2d\u3002\u7136\u540e\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u6846ndat\uff0c\u5176\u4e2d\u5305\u542b\u4e24\u4e2a\u81ea\u53d8\u91cfX1\u548cX2\uff0c\u6bcf\u4e2a\u81ea\u53d8\u91cf\u67094\u4e2a\u4e0d\u540c\u7684\u53d6\u503c\u3002\u63a5\u7740\uff0c\u4f7f\u7528predictSurvProb()\u51fd\u6570\u5bf9ndat\u8fdb\u884c\u751f\u5b58\u6982\u7387\u9884\u6d4b\uff0c\u5176\u4e2dcoxmodel\u662f\u5148\u524d\u62df\u5408\u7684Cox\u56de\u5f52\u6a21\u578b\uff0cnewdata = ndat\u8868\u793a\u5bf9ndat\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u9884\u6d4b\uff0ctimes = ttt\u8868\u793a\u8ba1\u7b97\u57285\u4e2a\u5206\u4f4d\u6570\u65f6\u95f4\u70b9\u4e0b\u7684\u751f\u5b58\u6982\u7387\u3002\u6700\u7ec8\uff0c\u51fd\u6570\u5c06\u9884\u6d4b\u7ed3\u679c\u8f93\u51fa\u5230\u4e00\u4e2a\u77e9\u9635\u4e2d\uff0c\u5176\u4e2d\u6bcf\u4e00\u884c\u8868\u793a\u4e00\u4e2a\u6837\u672c\u5728\u4e0d\u540c\u65f6\u95f4\u70b9\u4e0b\u7684\u751f\u5b58\u6982\u7387\u9884\u6d4b\u503c\u3002<\/p>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.2261640798226164\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_cV1ibahg475l8nvTZQT1e0pPaHWmqg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tI8gotoFBsAFARSbBafxSfmXAhycV1ibahg475l8nvTZQT1e0pPaHWmqg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"902\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u5728Cox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u4e2d\uff0c\u5e38\u5e38\u5b58\u5728\u67d0\u4e9b\u81ea\u53d8\u91cf\u7684\u6548\u5e94\u53ef\u80fd\u4e0e\u98ce\u9669\u7fa4\u4f53\u6709\u5173\uff0c\u5373\u4e0d\u540c\u98ce\u9669\u7fa4\u4f53\u53ef\u80fd\u5177\u6709\u4e0d\u540c\u7684\u81ea\u53d8\u91cf\u6548\u5e94\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u7814\u7a76\u4e2d\uff0c\u6211\u4eec\u53d1\u73b0X1\u5728\u4e0d\u540c\u5e74\u9f84\u6bb5\u7684\u60a3\u8005\u4e2d\u53ef\u80fd\u5177\u6709\u4e0d\u540c\u7684\u5f71\u54cd\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u6839\u636e\u5e74\u9f84\u5c06\u6837\u672c\u5206\u4e3a\u4e0d\u540c\u7684\u7fa4\u4f53\uff0c\u7136\u540e\u5728\u6bcf\u4e2a\u7fa4\u4f53\u4e2d\u5206\u522b\u62df\u5408Cox\u6a21\u578b\u3002<br  \/><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528strata()\u51fd\u6570\u6765\u5b9e\u73b0\u5206\u5c42\u3002strata()\u51fd\u6570\u5c06\u53ef\u4ee5\u88ab\u7528\u4e8e\u4e3aCox\u6a21\u578b\u4e2d\u7684\u81ea\u53d8\u91cf\u6307\u5b9a\u5206\u5c42\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u6bcf\u4e2a\u5206\u5c42\u4e2d\u5206\u522b\u62df\u5408Cox\u6a21\u578b\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06X1\u53d8\u91cf\u4f5c\u4e3a\u5206\u5c42\u53d8\u91cf\uff0c\u5373\u5c06\u6570\u636e\u96c6\u4e2d\u7684\u6837\u672c\u6309\u7167X1\u53d8\u91cf\u7684\u4e0d\u540c\u53d6\u503c\u5206\u6210\u4e0d\u540c\u7684\u7ec4\uff0c\u7136\u540e\u5728\u6bcf\u4e2a\u7ec4\u4e2d\u62df\u5408Cox\u6a21\u578b\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u6355\u6349X1\u53d8\u91cf\u7684\u5f71\u54cd\u3002<\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><code><span class=\"code-snippet_outer\">library(tidyverse)<\/span><\/code><code><span class=\"code-snippet_outer\">library(GSVA)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6548323471400395\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_Owf7oRjkib2KBib9Qy7xVMTxVibn8w.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tI2ChdWb32rGJHticOskmlzVaGM0qnOwf7oRjkib2KBib9Qy7xVMTxVibn8w\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1014\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">predictSurvProb(sfit, newdata = d[<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">3<\/span>, ], times = <span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__number\">1<\/span>, <span class=\"code-snippet__number\">3<\/span>, <span class=\"code-snippet__number\">5<\/span>, <span class=\"code-snippet__number\">10<\/span>))<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.17131474103585656\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_qwX6W08qDTG08V5VIXAXhGqthF9iaQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tId3micjQfRicPRiaDs78PoUSv2xMhqwX6W08qDTG08V5VIXAXhGqthF9iaQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1004\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u4f7f\u7528predictSurvProb()\u51fd\u6570\u5bf9\u6570\u636e\u96c6d\u4e2d\u7684\u524d3\u4e2a\u89c2\u6d4b\u503c\u8fdb\u884c\u751f\u5b58\u6982\u7387\u9884\u6d4b\uff0c\u5176\u4e2dnewdata = d[1:3, ]\u8868\u793a\u5bf9\u6570\u636e\u96c6d\u4e2d\u7684\u524d3\u4e2a\u89c2\u6d4b\u503c\u8fdb\u884c\u9884\u6d4b\uff0ctimes = c(1, 3, 5, 10)\u8868\u793a\u9884\u6d4b\u57281\u30013\u30015\u548c10\u4e2a\u65f6\u95f4\u70b9\u4e0b\u7684\u751f\u5b58\u6982\u7387\u3002<\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">## \u4f7f\u7528plot()\u51fd\u6570\u5bf9\u751f\u5b58\u66f2\u7ebf\u8fdb\u884c\u53ef\u89c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sfit &lt;- survfit(sfit)<\/span><\/code><code><span class=\"code-snippet_outer\">plot(sfit, col=<span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"red\"<\/span>, <span class=\"code-snippet__string\">\"blue\"<\/span>), main=<span class=\"code-snippet__string\">\"Survival Curve\"<\/span>, xlab=<span class=\"code-snippet__string\">\"Time\"<\/span>, ylab=<span class=\"code-snippet__string\">\"Survival Probability\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5259259259259259\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_lVF9rf7atdeXQQUF3rWroQ7E1oYAQQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tIKVWKOdiaUq1whjQWKG9PG3jIslVF9rf7atdeXQQUF3rWroQ7E1oYAQQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"white-space: normal;\">\u8fd8\u53ef\u4ee5\u7ed8\u5236\u68ee\u6797\u56fe\uff1a\u68ee\u6797\u56fe\u662f\u4e00\u79cd\u7528\u4e8e\u663e\u793a Cox \u56de\u5f52\u6a21\u578b\u4e2d\u5404\u4e2a\u53d8\u91cf\u7684\u7cfb\u6570\u548c\u7f6e\u4fe1\u533a\u95f4\u7684\u53ef\u89c6\u5316\u65b9\u6cd5\u3002\u5b83\u901a\u5e38\u7528\u4e8e\u663e\u793a\u591a\u4e2a\u53d8\u91cf\u7684\u7ed3\u679c\uff0c\u5e76\u5c06\u5b83\u4eec\u6309\u7167\u91cd\u8981\u6027\u6392\u5e8f\u3002<\/p>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">coxm &lt;- coxph(Surv(time, status) ~ X1 + X2, data = d)<\/span><\/code><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><code><span class=\"code-snippet_outer\">library(forestmodel)<\/span><\/code><code><span class=\"code-snippet_outer\">forest_model(coxm,<\/span><\/code><code><span class=\"code-snippet_outer\">theme = theme_forest(),<\/span><\/code><code><span class=\"code-snippet_outer\">factor_separate_line=<span class=\"code-snippet__literal\">TRUE<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5527777777777778\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_SuUIbMEkvdOBRJ9BhTO8ksLfd5n2Dw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVHcMQz2148geaaBNcJI0tI1HdhufSuJHkfFicqeuibDpI7rISuUIbMEkvdOBRJ9BhTO8ksLfd5n2Dw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p>\u8fd9\u5c31\u662fCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b\u7684\u5e94\u7528\u8fc7\u7a0b\u5566\uff5e\u5927\u5bb6\u5b66\u4f1a\u4e86\u5417\uff5e\u6709\u7591\u95ee\u7684\u5c0f\u4f19\u4f34\u6b22\u8fce\u7559\u8a00\u548c\u5c0f\u5e08\u59b9\u4ea4\u6d41\u54e6\uff5e<\/p>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;margin-top: 10px;margin-bottom: 10px;\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;flex: 100 100 0%;height: auto;align-self: center;margin-right: 10px;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;\">\n<section style=\"background-color: rgb(249, 172, 172);height: 1px;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-width: 1px;border-style: solid;border-color: rgb(249, 172, 172);padding-right: 8px;padding-left: 8px;margin-right: 10px;\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>E<\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-width: 1px;border-style: solid;border-color: rgb(249, 172, 172);padding-right: 8px;padding-left: 8px;margin-right: 10px;\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>N<\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-width: 1px;border-style: solid;border-color: rgb(249, 172, 172);padding-right: 8px;padding-left: 8px;margin-right: 10px;\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>D<\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;height: auto;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;\">\n<section style=\"background-color: rgb(249, 172, 172);height: 1px;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"text-align: center;margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" data-ratio=\"0.3488888888888889\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/9_orUJ7Wt6jfKhJga1B94BNRow1TXKfA.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/oCSOtP61aEXpV0iaewm4NOiaklxrhaox2keStd5BM9n21jcvEovKia3icPZrorUJ7Wt6jfKhJga1B94BNRow1TXKfA\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"900\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"margin-bottom: 0px;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;white-space: normal;\">\u66f4\u591a\u65b9\u4fbf\u5b9e\u7528\u7684\u5c0f\u5de5\u5177\u5728\u4e91\u751f\u4fe1\u5e73\u53f0\u7b49\u7740\u5927\u5bb6\u54e6\uff01<\/p>\n<p style=\"margin-bottom: 0px;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;white-space: normal;\">http:\/\/www.biocloudservice.com\/home.html<\/p>\n<p style=\"text-align: center;margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.5555555555555556\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/10_akXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ-4.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEXjjmsEC5aXz0RE4be2ib1fJPnBD8yX0Z6OF2zocd2ngHpLOakXKU5NcO1KwuWc1Rk7ZJ56LC2pYrQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"900\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<p><\/content>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e09\u5206\u949f\u6559\u4f60\u5165\u95e8\u751f\u5b58\u5206\u6790\u4e4bCox\u6bd4\u4f8b\u98ce\u9669\u6a21\u578b \u5c0f\u5e08\u59b9&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp;&nbsp;202 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59283"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59283"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59283\/revisions"}],"predecessor-version":[{"id":59294,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59283\/revisions\/59294"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}