{"id":58400,"date":"2024-06-16T22:46:06","date_gmt":"2024-06-16T14:46:06","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=58400"},"modified":"2024-06-16T22:46:06","modified_gmt":"2024-06-16T14:46:06","slug":"%e4%b8%b4%e5%ba%8a%e5%88%86%e7%b1%bb%e5%8f%98%e9%87%8f%e5%a6%82%e4%bd%95%e7%a1%ae%e8%ae%a4%e5%85%b3%e8%81%94%ef%bc%9f%e6%95%99%e4%bd%a0%e4%b8%80%e6%8b%9b%e5%8d%a1%e6%96%b9%e6%a3%80%e9%aa%8c","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=58400","title":{"rendered":"\u4e34\u5e8a\u5206\u7c7b\u53d8\u91cf\u5982\u4f55\u786e\u8ba4\u5173\u8054\uff1f\u6559\u4f60\u4e00\u62db\u5361\u65b9\u68c0\u9a8c"},"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\":\"\u4e34\u5e8a\u5206\u7c7b\u53d8\u91cf\u5982\u4f55\u786e\u8ba4\u5173\u8054\uff1f\u6559\u4f60\u4e00\u62db\u5361\u65b9\u68c0\u9a8c\",\"time\":\"2023-08-05 19:00:21\",\"timeStamp\":\"1691233221\"};\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=2247491019&#038;idx=3&#038;sn=fe5bcae1eca8d92ec9c75d5575643214&#038;chksm=cf7c8d0ef80b04182606c04e76923a057f066aefaa70c3e2dbf03e0e6db1589543879868016c#rd\" target=\"_blank\" rel=\"noopener\">\u4e34\u5e8a\u5206\u7c7b\u53d8\u91cf\u5982\u4f55\u786e\u8ba4\u5173\u8054\uff1f\u6559\u4f60\u4e00\u62db\u5361\u65b9\u68c0\u9a8c<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5927\u6d77\u54e5&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-08-05 19:00:21<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1a\u751f\u4fe1\u6ee9<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkzMzUwODcwMg==&#038;mid=2247484120&#038;idx=1&#038;sn=781d66508a28a956712701de5141095f\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=MzkzMzUwODcwMg==&#038;mid=2247484120&#038;idx=1&#038;sn=781d66508a28a956712701de5141095f<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;margin: 25px 0% 10px;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;background-color: rgb(245, 241, 224);min-width: 10%;flex: 0 0 auto;height: auto;align-self: flex-start;\">\n<section style=\"display: flex;flex-flow: row;margin: -9px 0% 5px;justify-content: flex-start;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 0 0 0%;height: auto;line-height: 0;align-self: flex-start;border-width: 0px;margin-top: 5px;margin-left: 7px;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 2px;height: 10px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<section style=\"text-align: center;margin: -6px 0% 4px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 10px;height: 2px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);\"><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: top;width: auto;flex: 0 0 0%;height: auto;line-height: 0;border-width: 0px;margin-left: 4px;\">\n<section style=\"text-align: center;margin-top: -4px;margin-right: 0%;margin-left: 0%;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 9px;height: 9px;vertical-align: top;overflow: hidden;border-width: 2px;border-radius: 47px;border-style: solid;border-color: rgb(59, 149, 115);\"><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: top;width: auto;min-width: 10%;flex: 0 0 auto;height: auto;\">\n<section style=\"margin-right: 0%;margin-left: 0%;text-align: center;transform: translate3d(-1px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(59, 149, 115);font-size: 19px;padding-right: 11px;padding-left: 11px;line-height: 1;text-align: justify;\">\n<p style=\"text-align: left;text-wrap: wrap;\"><strong>\u70b9\u51fb\u84dd\u5b57 \u5173\u6ce8\u6211\u4eec<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;line-height: 0;flex: 0 0 0%;height: auto;\">\n<section style=\"text-align: center;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 16px;height: 12px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);padding-right: 2px;padding-left: 2px;\">\n<section style=\"justify-content: center;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: 50%;align-self: flex-start;flex: 0 0 auto;\">\n<section style=\"margin-top: 4px;margin-right: 0%;margin-left: 0%;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 3px;height: 3px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 155px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(245, 245, 245);\"><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: top;width: 50%;align-self: flex-start;flex: 0 0 auto;\">\n<section style=\"margin-top: 4px;margin-right: 0%;margin-left: 0%;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 3px;height: 3px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 155px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(245, 245, 245);\"><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<\/section>\n<section style=\"text-align: center;transform: translate3d(3px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 0px;height: 0px;vertical-align: top;overflow: hidden;border-style: solid;border-width: 0px 0px 4px 4px;border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgb(59, 149, 115);\"><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<\/section>\n<section style=\"font-size: 14px;line-height: 1.8;letter-spacing: 2px;padding-right: 10px;padding-left: 10px;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<p>\u5c0f\u4f19\u4f34\u4eec\u5927\u5bb6\u597d\uff0c\u6211\u8fd8\u662f\u90a3\u4e2a\u5927\u6d77\u54e5\uff01\u4eca\u5929\u5927\u6d77\u54e5\u5728\u5404\u5927\u8bba\u575b\u793e\u533a\u5b66\u4e60\u7684\u65f6\u5019\u7a81\u7136\u770b\u5230\u4e00\u4e2a\u95ee\u9898\uff1a\u6211\u7684\u6570\u636e\u6709\u5f88\u591a\u5206\u7c7b\u53d8\u91cf\uff0c\u6211\u8be5\u600e\u4e48\u770b\u5b83\u4eec\u662f\u5426\u6709\u5173\u8054\u6027\u6bd4\u8f83\u597d\uff1f\u4e0b\u9762\u6709\u7684\u5c0f\u4f19\u4f34\u8868\u793a\uff0c\u76f4\u63a5\u76f8\u5173\u6027\u5206\u6790\u4e0d\u5c31\u597d\u4e86\u3002\u5927\u6d77\u54e5\u89c9\u5f97\uff0c\u76f8\u5173\u6027\u5206\u6790\u66f4\u9002\u5408\u8fde\u7eed\u6027\u53d8\u91cf\uff0c\u800c\u5206\u7c7b\u53d8\u91cf\u7684\u8bdd\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5361\u65b9\u9a8c\u8bc1\u6765\u9a8c\u8bc1\u53d8\u91cf\u4e4b\u95f4\u7684\u76f8\u5173\u6027\u3002\u90a3\u4e48\u4eca\u5929\u5927\u6d77\u54e5\u5c31\u7279\u610f\u51c6\u5907\u4e86\u4e00\u4e2a\u6848\u4f8b\u6559\u5b66\uff0c\u6765\u8ba9\u5927\u5bb6\u9047\u5230\u8fd9\u7c7b\u95ee\u9898\u65f6\uff0c\u4e0d\u614c\u4e0d\u5fd9\u7684\u5b8c\u7f8e\u89e3\u51b3\uff01<\/p>\n<p><br  \/><\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u6765\u4e86\u89e3\u4e00\u4e0b\uff0c<strong><span style=\"color: rgb(59, 149, 115);\">\u5361\u65b9\u9a8c\u8bc1\u5230\u5e95\u662f\u4ec0\u4e48<\/span><\/strong>\uff1f<\/p>\n<p>\u5361\u65b9\u68c0\u9a8c\uff08Chi-Square Test\uff09\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u7edf\u8ba1\u65b9\u6cd5\uff0c\u7528\u4e8e\u6bd4\u8f83\u89c2\u5bdf\u9891\u6570\u4e0e\u671f\u671b\u9891\u6570\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u4ece\u800c\u5224\u65ad\u4e24\u4e2a\u6216\u591a\u4e2a\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u5173\u8054\u6027\u3002\u5b83\u5e38\u7528\u4e8e\u5206\u6790\u5206\u7c7b\u6570\u636e\uff0c\u4f8b\u5982\u4e0d\u540c\u7ec4\u522b\u7684\u9891\u6570\u6216\u767e\u5206\u6bd4\u3002\u5176\u539f\u7406\u5462\uff1f\u5c31\u662f\u57fa\u4e8e\u89c2\u5bdf\u9891\u6570\u4e0e\u671f\u671b\u9891\u6570\u4e4b\u95f4\u7684\u5dee\u5f02\u662f\u5426\u663e\u8457\u3002\u89c2\u5bdf\u9891\u6570\u503c\u5f97\u662f\u5b9e\u9645\u89c2\u5bdf\u5230\u7684\u6837\u672c\u6570\u636e\u4e2d\u5404\u4e2a\u7c7b\u522b\u7684\u9891\u6570\uff0c\u800c\u671f\u671b\u9891\u6570\u662f\u5728\u65e0\u5173\u8054\u60c5\u51b5\u4e0b\uff0c\u6839\u636e\u603b\u4f53\u6bd4\u4f8b\u548c\u6837\u672c\u5927\u5c0f\u8ba1\u7b97\u5f97\u51fa\u7684\u7406\u8bba\u503c\u3002<\/p>\n<p><br  \/><\/p>\n<p>\u4e00\u822c\u6765\u8bf4\uff0c<strong><span style=\"color: rgb(59, 149, 115);\">\u5361\u65b9\u9a8c\u8bc1\u7684\u6d41\u7a0b\u6709\u5982\u4e0b6\u6b65<\/span><\/strong>\uff0c<\/p>\n<p>1\u3001\u5efa\u7acb\u5047\u8bbe\uff1a\u5206\u4e3a\u4e24\u79cd\u5047\u8bbe<\/p>\n<p>a)\u96f6\u5047\u8bbe\uff08H0\uff09\uff1a\u4e24\u4e2a\u6216\u591a\u4e2a\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u6ca1\u6709\u5173\u8054\uff0c\u5dee\u5f02\u662f\u7531\u968f\u673a\u56e0\u7d20\u5f15\u8d77\u7684\u3002<\/p>\n<p>b)\u5bf9\u7acb\u5047\u8bbe\uff08H1\uff09\uff1a\u4e24\u4e2a\u6216\u591a\u4e2a\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u5b58\u5728\u5173\u8054\uff0c\u5dee\u5f02\u4e0d\u662f\u7531\u968f\u673a\u56e0\u7d20\u5f15\u8d77\u7684\u3002<\/p>\n<p>2\u3001\u8ba1\u7b97\u671f\u671b\u9891\u6570\uff1a<\/p>\n<p>\u6839\u636e\u603b\u4f53\u6bd4\u4f8b\u548c\u6837\u672c\u5927\u5c0f\u8ba1\u7b97\u51fa\u6bcf\u4e2a\u7c7b\u522b\u7684\u671f\u671b\u9891\u6570\u3002<\/p>\n<p>3\u3001\u8ba1\u7b97\u5361\u65b9\u503c\uff1a<\/p>\n<p>\u8ba1\u7b97\u89c2\u5bdf\u9891\u6570\u4e0e\u671f\u671b\u9891\u6570\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\uff1a<\/p>\n<p>\u5361\u65b9\u503c = \u03a3[(\u89c2\u5bdf\u9891\u6570 &#8211; \u671f\u671b\u9891\u6570)2 \/ \u671f\u671b\u9891\u6570]<\/p>\n<p>4\u3001\u786e\u5b9a\u81ea\u7531\u5ea6<\/p>\n<p>\u81ea\u7531\u5ea6\u662f\u4e00\u4e2a\u51b3\u5b9a\u5361\u65b9\u5206\u5e03\u7684\u53c2\u6570\uff0c\u81ea\u7531\u5ea6\u7684\u8ba1\u7b97\u65b9\u6cd5\u4e3a\uff1a\u81ea\u7531\u5ea6 = (\u884c\u6570-1) * (\u5217\u6570-1)\uff0c\u5176\u4e2d\u884c\u6570\u548c\u5217\u6570\u5206\u522b\u662f\u5206\u7c7b\u53d8\u91cf\u7684\u7c7b\u522b\u6570\u3002<\/p>\n<p>5\u3001\u8ba1\u7b97P\u503c<\/p>\n<p>\u5c06\u8ba1\u7b97\u5f97\u5230\u7684\u5361\u65b9\u503c\u4e0e\u81ea\u7531\u5ea6\u5bf9\u5e94\u7684\u5361\u65b9\u5206\u5e03\u8868\u8fdb\u884c\u6bd4\u8f83\uff0c\u6216\u8005\u4f7f\u7528\u7edf\u8ba1\u8f6f\u4ef6\u8ba1\u7b97\u51faP\u503c\uff08\u663e\u8457\u6027\u6c34\u5e73\uff09\u3002<\/p>\n<p>6\u3001\u505a\u51fa\u7edf\u8ba1\u51b3\u7b56<\/p>\n<p>\u5982\u679cP\u503c\u5c0f\u4e8e\u8bbe\u5b9a\u7684\u663e\u8457\u6027\u6c34\u5e73\uff08\u901a\u5e38\u4e3a0.05\uff09\uff0c\u5219\u62d2\u7edd\u96f6\u5047\u8bbe\uff0c\u8ba4\u4e3a\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u5b58\u5728\u5173\u8054\u3002\u5982\u679cP\u503c\u5927\u4e8e\u663e\u8457\u6027\u6c34\u5e73\uff0c\u5219\u65e0\u6cd5\u62d2\u7edd\u96f6\u5047\u8bbe\uff0c\u8ba4\u4e3a\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u6ca1\u6709\u5173\u8054\u3002<\/p>\n<p><br  \/><\/p>\n<p>\u597d\u4e86\uff0c\u7406\u8bba\u5b66\u4e60\u5b8c\u6bd5\uff0c\u5f00\u59cb\u540c\u6837\u91cd\u8981\u7684\u5b9e\u8df5\u90e8\u5206\u5427\uff01<\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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<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\">#\u5361\u65b9\u68c0\u9a8cR\u8bed\u8a00\u5b9e\u73b0<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;<span class=\"code-snippet__comment\">#\u9996\u5148\u6211\u4eec\u5148\u751f\u6210\u4e00\u4e2a\u4e34\u5e8a\u6570\u636e\u6837\u4f8b<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;set.seed(<span class=\"code-snippet__number\">7897<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">data &lt;- data.frame(<\/span><\/code><code><span class=\"code-snippet_outer\">agegroup=sample(<span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"&gt;=60\"<\/span>,<span class=\"code-snippet__string\">\"&lt;60\"<\/span>),<span class=\"code-snippet__number\">45<\/span>,replace = <span class=\"code-snippet__built_in\">T<\/span>),<\/span><\/code><code><span class=\"code-snippet_outer\">smoke=sample(<span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"tobacco\"<\/span>,<span class=\"code-snippet__string\">\"NOtobacco\"<\/span>),<span class=\"code-snippet__number\">45<\/span>,replace=<span class=\"code-snippet__built_in\">T<\/span>),<\/span><\/code><code><span class=\"code-snippet_outer\">drink=sample(<span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"alcohol\"<\/span>,<span class=\"code-snippet__string\">\"NDalcohol\"<\/span>),<span class=\"code-snippet__number\">45<\/span>,replace=<span class=\"code-snippet__built_in\">T<\/span>),<\/span><\/code><code><span class=\"code-snippet_outer\">tea=sample(<span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"leaf\"<\/span>,<span class=\"code-snippet__string\">\"NOleaf\"<\/span>),<span class=\"code-snippet__number\">45<\/span>,replace =<span class=\"code-snippet__built_in\">T<\/span>))<\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u5148\u6765\u770b\u770b\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">head(data)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.4222222222222222\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_IpmdnVsnqAVuVdiaicyTOdqeI1ehNg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakKSpj3ZS2eQvzGzibXon9ib0phKt7IpmdnVsnqAVuVdiaicyTOdqeI1ehNg\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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\">#\u73b0\u5728\u5047\u5982\u6211\u4eec\u60f3\u7528\u5361\u65b9\u68c0\u9a8c\u770b\u770bage\u548csmoke\u4e24\u8005\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u4e00\u5b9a\u7684\u8054\u7cfb\uff0c\u5c31\u53ef\u4ee5\u5355\u4e2a\u68c0\u9a8c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u5148\u770b\u770b\u5927\u81f4\u5b9e\u9645\u60c5\u51b5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;table(data$agegroup,data$smoke)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.2972222222222222\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_fAG0bqLgSmfzNVln7vRdOVrSfjwCXA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakIibJUQWU06mMjl7QGEbyjfeicofAG0bqLgSmfzNVln7vRdOVrSfjwCXA\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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\">#\u5361\u65b9\u68c0\u9a8c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp;s=chisq.test(data$agegroup,data$smoke,correct = <span class=\"code-snippet__literal\">TRUE<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u770b\u770b\u671f\u671b\u9891\u6570\u662f\u591a\u5c11<\/span><\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.3277777777777778\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_bIaxbYw765d2niaVHBd3jbxwlhaOSA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2Kiakrusa6IJc7ZvW6sJuyHYXMgJcTibIaxbYw765d2niaVHBd3jbxwlhaOSA\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"font-size: 14px;line-height: 1.8;letter-spacing: 2px;padding-right: 10px;padding-left: 10px;\" powered-by=\"xiumi.us\">\n<p>#\u518d\u770b\u770b\u5361\u65b9\u503c\u548cP\u503c\u662f\u591a\u5c11<\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.1259259259259259\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_r84Lficicwibx6qlfbuw34JtNZelvA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2Kiakca09IP4cDZjRtUqlagKsec8tdkIr84Lficicwibx6qlfbuw34JtNZelvA\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u7ed3\u679cP\u503c\u4e3a0.67\uff0c\u5927\u4e8e0.05\uff0c\u5e76\u6ca1\u6709\u8bf4\u660e\u5206\u7c7b\u53d8\u91cf\u4e4b\u95f4\u6ca1\u6709\u5173\u8054<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u5c31\u8fd9\u4e48\u7b80\u5355\uff1f\u5f53\u7136\u4e0d\u662f\uff0c\u5982\u679c\u4e0a\u9762\u671f\u671b\u9891\u6570\u5c0f\u4e8e1\uff0c\u6211\u4eec\u5c31\u9700\u8981\u7528fisher\u68c0\u9a8c\u53bb\u5bf9\u8fd9\u4e24\u5217\u8fdb\u884c\u91cd\u65b0\u8ba1\u7b97<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6211\u4eec\u624b\u52a8\u8c03\u6574\u4e00\u4e0b\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">data$drink[<span class=\"code-snippet__number\">3<\/span>:<span class=\"code-snippet__number\">45<\/span>]=<span class=\"code-snippet__string\">\"alcohol\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">data$tea[<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">44<\/span>]=<span class=\"code-snippet__string\">\"NOleaf\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u518d\u8bd5\u4e00\u6b21<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">s=chisq.test(data$agegroup,data$drink,correct = <span class=\"code-snippet__literal\">TRUE<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">s<span class=\"code-snippet__comment\">#expected<\/span><\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.30462962962962964\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_QbRm2iakODtjdQamAFE3PDzrsGJsgg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakJP1kTYZfDn8qzd0HMQbgBEbiaEQbRm2iakODtjdQamAFE3PDzrsGJsgg\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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\">#\u4f1a\u51fa\u73b0\u63d0\u793a\uff0c\u540c\u65f6\u671f\u671b\u9891\u6570\u51fa\u73b0\u5c0f\u4e8e1\u7684\u60c5\u51b5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u5c31\u9700\u8981fisher\u68c0\u9a8c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">fisher.test(data$agegroup,data$drink)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"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.4222222222222222\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_9hurFNlFMbnsftArXCl0mVG6vLqxxg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2Kiakb3ykfG1YXPe0pykChpGNgu7A9hurFNlFMbnsftArXCl0mVG6vLqxxg\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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<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\">#\u90a3\u5982\u679c\u53d8\u91cf\u5f88\u591a\u8be5\u600e\u4e48\u529e\uff1f\u4e0d\u80fd\u4e00\u4e2a\u4e00\u4e2a\u7684\u8fd0\u884c\u5427\uff1f<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u522b\u7740\u6025\uff0c\u5927\u6d77\u54e5\u8fd9\u5c31\u6559\u4f60\u5982\u4f55\u6279\u91cf\u5904\u7406<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9996\u5148\u5bfc\u5165R\u5305purrr<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">library(purrr)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u4e3b\u8981\u5206\u7c7b\u53d8\u91cf\u9009\u62e9\u5e74\u9f84\uff0c\u5927\u5bb6\u53ef\u4ee5\u9009\u62e9\u81ea\u5df1\u9700\u8981\u5206\u6790\u7684\u53d8\u91cf\u54e6\uff01<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">FUN&lt;- <span class=\"code-snippet__keyword\">function<\/span>(x){chisq.test(data[,<span class=\"code-snippet__string\">\"agegroup\"<\/span>],x ,correct = <span class=\"code-snippet__literal\">TRUE<\/span>)}<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u9700\u8981\u8ba1\u7b97\u7684\u53d8\u91cf\u4e3a2\u52304\u5217<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">chi_result&lt;-purrr::map(data[,<span class=\"code-snippet__number\">2<\/span>:<span class=\"code-snippet__number\">4<\/span>],FUN)<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">FUN2&lt;-<span class=\"code-snippet__keyword\">function<\/span>(x){b1=x$expected}<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u628a\u671f\u671b\u9891\u6570\u90fd\u653e\u5165\u7ed3\u679c\u4e2d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">expected_result&lt;-map(chi_result,FUN2)<\/span><\/code><code><span class=\"code-snippet_outer\">expected_result<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"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.9\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_AnAQOloTVIz2cstlMm7gricgtxFznA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakvSfLZmRqXt1kdQooAsfYXS5kkAnAQOloTVIz2cstlMm7gricgtxFznA\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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\"><span class=\"code-snippet__comment\">#\u8f6c\u6362\u4e3a\u4e8c\u7ef4\u77e9\u9635<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">expected_result2&lt;-map_dfr(chi_result,FUN2)<\/span><\/code><code><span class=\"code-snippet_outer\">expected_result2=as.data.frame(as.matrix(expected_result2))<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__built_in\">names<\/span>(expected_result2)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" data-ratio=\"0.06388888888888888\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_usIDia74icuMcx9sDrZwlWzg43cQwA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakCdA0tdPxUS5oIYN7ib4umR5IG26usIDia74icuMcx9sDrZwlWzg43cQwA\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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\">#\u770b\u770b\u54ea\u4e9b\u5173\u8054\u8ba1\u7b97\u7684\u671f\u671b\u9891\u6570\u51fa\u73b0\u5c0f\u4e8e1\u7684\u60c5\u51b5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">a1=unique(which(expected_result2&lt;<span class=\"code-snippet__number\">1<\/span>,arr.ind=<span class=\"code-snippet__built_in\">T<\/span>)[,<span class=\"code-snippet__number\">2<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">a1<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"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.1287037037037037\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/9_JMwm0x5obYU0VmVLZuibnm6iaFqibw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2KiakibF05wWj9ic29stWHOdOqClW7cwGHJMwm0x5obYU0VmVLZuibnm6iaFqibw\/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 style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/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<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<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\">#\u8bf4\u660edrink\u548ctea\u5728\u8ba1\u7b97\u671f\u671b\u9891\u6570\u65f6\u51fa\u73b0\u5c0f\u4e8e1\u7684\u60c5\u51b5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u53ef\u4ee5\u9488\u5bf9\u8fd9\u51e0\u4e2a\u505afisher\u5904\u7406\u5566\uff01<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u76f4\u63a5\u5bfc\u51fa\u6240\u6709\u7684\u7ed3\u679c\uff0c\u7136\u540e\u5bf9drink\u548ctea\u505afisher\u9a8c\u8bc1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">tab1&lt;-CreateTableOne(data=data,<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6307\u5b9a\u5206\u7ec4\u53d8\u91cf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">strata=<span class=\"code-snippet__string\">\"agegroup\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6307\u5b9a\u8981\u5206\u6790\u7684\u53d8\u91cf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">vars = colnames(data)[<span class=\"code-snippet__number\">2<\/span>:<span class=\"code-snippet__number\">4<\/span>],<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u8bbe\u7f6e\u5c5e\u4e8e\u5206\u7c7b\u53d8\u91cf\u7684<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">factorVars=colnames(data)[<span class=\"code-snippet__number\">2<\/span>:<span class=\"code-snippet__number\">4<\/span>],<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6dfb\u52a0Overall\u5217\u7684\u5206\u6790\u7ed3\u679c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">addOverall=<span class=\"code-snippet__literal\">TRUE<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6700\u7ec8\u7ed3\u679c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">Table1&lt;-print(tab1,showAllLevels=<span class=\"code-snippet__literal\">TRUE<\/span>,<span class=\"code-snippet__comment\">#\u663e\u793a\u6240\u6709\u6c34\u5e73\uff0c\u4e0d\u6298\u53e0<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;cramVars=colnames(data)[<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">4<\/span>],<span class=\"code-snippet__comment\">#\u8bbe\u7f6e\u5c5e\u4e8e\u5206\u7c7b\u53d8\u91cf\u7684<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;<span class=\"code-snippet__comment\">#nonnormal=\u201c\u201d,\u8bbe\u7f6e\u5c5e\u4e8e\u4e24\u865a\u975e\u6b63\u6001\u7684\u53d8\u91cf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;exact= <span class=\"code-snippet__built_in\">c<\/span>(<span class=\"code-snippet__string\">\"drink\"<\/span>,<span class=\"code-snippet__string\">\"tea\"<\/span>),<span class=\"code-snippet__comment\">#\u6307\u5b9a\u9700\u8981\u8fdb\u884cfisher\u68c0\u9a8c\u7684\u53d8\u91cf<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;catDigits=<span class=\"code-snippet__number\">4<\/span>,<span class=\"code-snippet__comment\">#\u5206\u7c7b\u53d8\u91cf\u4fdd\u7559\u5c0f\u6570\u4f4d\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;contDigits=<span class=\"code-snippet__number\">4<\/span>, <span class=\"code-snippet__comment\">#\u8fde\u7eed\u53d8\u91cf\u4fdd\u7559\u5c0f\u6570\u4f4d\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;<span class=\"code-snippet__built_in\">quote<\/span>=<span class=\"code-snippet__literal\">FALSE<\/span>,<span class=\"code-snippet__comment\">#\u4e0d\u663e\u793a\u5f15\u53f7<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;noSpace=<span class=\"code-snippet__literal\">TRUE<\/span>,<span class=\"code-snippet__comment\">#\u662f\u5426\u5220\u9664\u4e3a\u5bf9\u9f50\u800c\u6dfb\u52a0\u7684\u7a7a\u95f4<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> &nbsp; &nbsp;printToggle=<span class=\"code-snippet__literal\">FALSE<\/span><span class=\"code-snippet__comment\">#\u8f93\u51famatrix<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6253\u5370\u4e00\u4e0b<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">Table1<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<section style=\"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.2388888888888889\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/10_nliaIhfibkHKOkwS6lkgXU10Sib3aQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSHSjDO1icgNlBcc30QX2Kiak68ZBqaicEF7wXgSVsKPyqZ7Ct8LynliaIhfibkHKOkwS6lkgXU10Sib3aQ\/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 style=\"font-size: 14px;line-height: 1.8;letter-spacing: 2px;padding-right: 10px;padding-left: 10px;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<p>#\u7ed3\u679c\u4e00\u76ee\u4e86\u7136\uff0c\u56e0\u4e3a\u5927\u6d77\u54e5\u662f\u968f\u673a\u751f\u6210\u7684\u6570\u636e\uff0c\u6240\u4ee5\u7ed3\u679c\u4e0d\u5177\u5907\u53c2\u8003\u6027\uff0c\u4f46\u662f\u4ee3\u7801\u53ca\u5206\u6790\u6d41\u7a0b\u90fd\u662f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7684\u54e6\uff01\u5927\u5bb6\u653e\u5fc3\u7684\u62ff\u81ea\u5df1\u624b\u5934\u4e0a\u7684\u6570\u636e\u8bd5\u4e00\u8bd5\u5427\uff01\u5982\u679c\u7ed3\u679c\u4e0d\u9519\uff0c\u8bf4\u660e\u5927\u6d77\u54e5\u7684\u8fd9\u6b21\u5206\u4eab\u975e\u5e38\u6709\u4ef7\u503c\uff01\u5feb\u53bb\u52a8\u624b\u8bd5\u8bd5\u5427\uff01\uff08<strong><span style=\"color: rgb(59, 149, 115);\">\u6700\u540e\u63a8\u8350\u4e00\u4e0b\u5927\u6d77\u54e5\u65b0\u5f00\u53d1\u7684\u96f6\u4ee3\u7801\u4e91\u751f\u4fe1\u5206\u6790\u5de5\u5177\u5e73\u53f0\uff0c\u5305\u542b\u8d85\u591a\u96f6\u4ee3\u7801\u5c0f\u5de5\u5177\uff0c\u4e0a\u4f20\u6570\u636e\u4e00\u4ef6\u51fa\u56fe\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u6b22\u8fce\u6765\u53c2\u89c2\u54df\uff0c\u7f51\u5740\uff1ahttp:\/\/www.biocloudservice.com\/home.html<\/span><\/strong>\uff09<\/p>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"border-bottom: 2px solid rgb(0, 150, 136);text-align: left;font-size: 14px;\" powered-by=\"xiumi.us\">\n<p>\u70b9\u51fb\u201c\u9605\u8bfb\u539f\u6587\u201d\u8fdb\u5165\u7f51\u5740<\/p>\n<\/section>\n<section style=\"margin-left: 8%;margin-right: 8%;line-height: 1.1em;\" powered-by=\"xiumi.us\">\n<section style=\"width: 0px;display: inline-block;vertical-align: top;border-top: 1em solid rgb(0, 150, 136);border-left: 0.8em solid transparent !important;border-right: 0.8em solid transparent !important;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 24px;\"><br  \/><\/p>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e34\u5e8a\u5206\u7c7b\u53d8\u91cf\u5982\u4f55\u786e\u8ba4\u5173\u8054\uff1f\u6559\u4f60\u4e00\u62db\u5361\u65b9\u68c0\u9a8c \u5927\u6d77\u54e5&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\/58400"}],"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=58400"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/58400\/revisions"}],"predecessor-version":[{"id":58411,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/58400\/revisions\/58411"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58400"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}