{"id":68755,"date":"2026-12-05T09:10:35","date_gmt":"2026-12-05T01:10:35","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68755"},"modified":"2026-12-05T09:10:35","modified_gmt":"2026-12-05T01:10:35","slug":"r-guide-skat-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-skat-practice\/","title":{"rendered":"SKAT \u505a\u7f55\u89c1\u53d8\u5f02\u96c6\u5408\u68c0\u9a8c\uff0c\u600e\u6837\u5206\u6e05\u4f4d\u70b9\u591a\u548c\u643a\u5e26\u8005\u591a\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-skat\" style=\"max-width:820px;margin:0 auto;color:#203449;font-size:17px;line-height:1.88;overflow-wrap:break-word;\">\n<p style=\"margin:.5em 0 1em\">\u4e00\u4e2a\u57fa\u56e0\u91cc\u627e\u5230\u4e09\u79cd\u7f55\u89c1\u53d8\u5f02\uff0c\u4e09\u4e2a\u53d8\u5f02\u5b8c\u5168\u53ef\u80fd\u90fd\u843d\u5728\u540c\u4e00\u4e2a\u4eba\u8eab\u4e0a\u3002\u96c6\u5408\u68c0\u9a8c\u524d\uff0c\u6570\u4e00\u904d\u53d8\u5f02\u3001\u66ff\u4ee3\u62f7\u8d1d\u4e0e\u643a\u5e26\u8005\uff0c\u5c31\u80fd\u53d1\u73b0\u4e00\u4e9b\u4ece\u53d8\u5f02\u6570\u4e0a\u770b\u4e0d\u51fa\u7684\u6781\u7aef\u6570\u636e\u60c5\u5f62\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">SKAT \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">md \u542b\u72ec\u7acb\u6837\u672c\u7684\u8fde\u7eed\u6027\u72b6 trait \u548c age\u3002G \u662f\u884c\u4e0e md \u76f8\u540c\u3001\u5217\u4e3a\u4e00\u4e2a\u57fa\u56e0\u5185\u53d8\u5f02\u7684\u5242\u91cf\u77e9\u9635\uff0c\u8fd9\u6bb5\u7528\u5b9a\u91cf\u6027\u72b6\u4f8b\u5b50\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u4f7f\u7528SKAT\u65b9\u6cd5\u8fdb\u884c\u7f55\u89c1\u53d8\u5f02\u96c6\u5408\u68c0\u9a8c\u65f6\uff0c\u7814\u7a76\u8005\u9762\u4e34\u7684\u6838\u5fc3\u95ee\u9898\u5728\u4e8e\u5982\u4f55\u533a\u5206\u4f4d\u70b9\u6570\u91cf\u4e0e\u643a\u5e26\u8005\u6570\u91cf\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u4e00\u4e2a\u57fa\u56e0\u5185\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u7f55\u89c1\u53d8\u5f02\uff0c\u4f46\u8fd9\u4e9b\u53d8\u5f02\u53ef\u80fd\u5168\u90e8\u96c6\u4e2d\u4e8e\u540c\u4e00\u4e2a\u4e2a\u4f53\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5c3d\u7ba1\u53d8\u5f02\u4f4d\u70b9\u6570\u8f83\u591a\uff0c\u5b9e\u9645\u7684\u643a\u5e26\u8005\u6570\u91cf\u5374\u5f88\u5c11\u3002\u8fd9\u79cd\u73b0\u8c61\u5728\u5206\u6790\u4e2d\u5bb9\u6613\u88ab\u5ffd\u7565\uff0c\u5bfc\u81f4\u5bf9\u53d8\u5f02\u96c6\u5408\u5b9e\u9645\u5f71\u54cd\u7684\u8bef\u5224\u3002\u56e0\u6b64\uff0c\u5fc5\u987b\u660e\u786e\u533a\u5206\u96c6\u5408\u4e2d\u53d8\u5f02\u7684\u4f4d\u70b9\u6570\u3001\u643a\u5e26\u8005\u6570\u4ee5\u53ca\u53d8\u5f02\u7684\u5206\u5e03\u60c5\u51b5\u3002\u5728\u5904\u7406\u8fde\u7eed\u6027\u72b6\u65f6\uff0c\u8fd9\u79cd\u73b0\u8c61\u66f4\u52a0\u9690\u853d\uff0c\u9700\u8981\u901a\u8fc7\u5242\u91cf\u77e9\u9635\u7684\u7ed3\u6784\u6765\u5224\u65ad\u5b9e\u9645\u7684\u53d8\u5f02\u5206\u5e03\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5242\u91cf\u77e9\u9635G\u7684\u7ed3\u6784\u53cd\u6620\u4e86\u6bcf\u4e2a\u6837\u672c\u4e2d\u53d8\u5f02\u7684\u643a\u5e26\u60c5\u51b5\uff0c\u5176\u4e2d\u884c\u5bf9\u5e94\u6837\u672c\uff0c\u5217\u5bf9\u5e94\u53d8\u5f02\u3002\u5982\u679c\u67d0\u5217\uff08\u5373\u67d0\u4e2a\u53d8\u5f02\uff09\u5728\u67d0\u884c\uff08\u5373\u67d0\u4e2a\u6837\u672c\uff09\u4e0a\u4e3a0\uff0c\u8bf4\u660e\u8be5\u6837\u672c\u672a\u643a\u5e26\u8be5\u53d8\u5f02\u3002\u5982\u679c\u67d0\u5217\u5728\u67d0\u884c\u4e0a\u4e3a1\uff0c\u8868\u793a\u8be5\u6837\u672c\u643a\u5e26\u8be5\u53d8\u5f02\u3002\u901a\u8fc7\u5206\u6790\u77e9\u9635\u7684\u884c\u548c\u5217\uff0c\u53ef\u4ee5\u5224\u65ad\u54ea\u4e9b\u6837\u672c\u643a\u5e26\u54ea\u4e9b\u53d8\u5f02\uff0c\u4ece\u800c\u8ba1\u7b97\u51fa\u6bcf\u4e2a\u53d8\u5f02\u7684\u5b9e\u9645\u643a\u5e26\u8005\u6570\u91cf\u3002\u5728\u5206\u6790\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u67d0\u5217\u7684\u603b\u548c\u4e3a1\uff0c\u8bf4\u660e\u8be5\u53d8\u5f02\u53ea\u88ab\u4e00\u4e2a\u6837\u672c\u643a\u5e26\u3002\u82e5\u67d0\u884c\u7684\u603b\u548c\u4e3a0\uff0c\u5219\u8bf4\u660e\u8be5\u6837\u672c\u672a\u643a\u5e26\u4efb\u4f55\u8be5\u57fa\u56e0\u5185\u7684\u53d8\u5f02\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4ee5\u7ed3\u5c40\u53ca\u534f\u53d8\u91cf\u8fd0\u884c <code>SKAT_Null_Model()<\/code>\uff0c\u518d\u5c06\u6bcf\u4e2a\u57fa\u56e0\u7684\u201c\u6837\u672c \u00d7 \u53d8\u5f02\u201d\u5242\u91cf\u77e9\u9635\u4ea4\u7ed9 <code>SKAT()<\/code>\uff0c\u6838\u5bf9\u96c6\u5408\u5b9e\u9645\u5305\u542b\u7684\u53d8\u5f02\u3002 <a href=\"https:\/\/cran.r-project.org\/web\/packages\/SKAT\/refman\/SKAT.html#SKAT\" style=\"color:#185CB7;text-decoration:underline;\">SKAT CRAN \u51fd\u6570\u624b\u518c<\/a><\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">stopifnot(identical(rownames(G),rownames(md)))\nnm &lt;- SKAT::SKAT_Null_Model(trait~age,data=md,out_type=\"C\")\na &lt;- SKAT::SKAT(G,nm)\na$p.value\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u540c\u4e00\u4eba\u643a\u5e26\u4e09\u79cd\u7f55\u89c1\u53d8\u5f02<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4e24\u884c\u4e09\u5217\u7684\u6f14\u7b97\u77e9\u9635\u6240\u6709\u975e\u96f6\u90fd\u6765\u81ea\u7b2c\u4e00\u4eba\uff0c\u4e09\u79cd\u53d8\u5f02\u5374\u53ea\u6709\u4e00\u4f4d\u643a\u5e26\u8005\u3002\u4f4d\u70b9\u6570\u4e0d\u8db3\u4ee5\u53cd\u6620\u53ef\u7528\u4fe1\u606f\uff0c\u771f\u5b9e\u7814\u7a76\u5e94\u6309\u75c5\u4f8b\u5bf9\u7167\u53ca\u6d4b\u5e8f\u6279\u6b21\u68c0\u67e5\u643a\u5e26\u8005\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">v &lt;- c(ncol(matrix(c(1,0,1,0,1,0),2)),sum(c(1,0,1,0,1,0)),sum(rowSums(matrix(c(1,0,1,0,1,0),2))&gt;0))\nnames(v) &lt;- c(\"\u53d8\u5f02\u6570\", \"\u66ff\u4ee3\u62f7\u8d1d\", \"\u4e0d\u540c\u643a\u5e26\u8005\")\nprint(v)\n<\/code><\/pre>\n<table style=\"width:100%;border-collapse:collapse;margin:1em 0;font-size:15px\">\n<thead>\n<tr>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">\u8f93\u5165\u6216\u6bd4\u8f83\u9879<\/th>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">R \u8ba1\u7b97\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u53d8\u5f02\u6570<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u66ff\u4ee3\u62f7\u8d1d<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u4e0d\u540c\u643a\u5e26\u8005<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure style=\"margin:1.5em 0;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-skat-practice-59790bb1.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u540c\u4e00\u4eba\u643a\u5e26\u4e09\u79cd\u7f55\u89c1\u53d8\u5f02\u3002\u53d8\u5f02\u6570 3\uff0c\u66ff\u4ee3\u62f7\u8d1d 3\uff0c\u4e0d\u540c\u643a\u5e26\u8005 1\u3002\" width=\"1120\" height=\"690\" style=\"max-width:100%;width:100%;height:auto;display:block\"><figcaption style=\"font-size:14px;color:#455970;line-height:1.6;\">\u6559\u5b66\u7b97\u4f8b\uff0c\u6570\u636e\u4e0e\u8ba1\u7b97\u5f0f\u89c1\u56fe\u4e0a\u65b9\u3002<\/figcaption><\/figure>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u53cd\u5411\u4f5c\u7528\u4f1a\u600e\u6837\u5f71\u54cd\u7b80\u5355\u8d1f\u62c5\u7edf\u8ba1\uff1f<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4e24\u4e2a\u4eba\u5404\u643a\u5e26\u4e00\u4e2a\u53d8\u5f02\uff0c\u7b80\u5355\u8d1f\u62c5\u90fd\u4e3a\u4e00\u3002\u82e5\u4e8b\u5148\u7ed9\u5b9a\u4e00\u6b63\u4e00\u8d1f\u7684\u6559\u5b66\u6548\u5e94\uff0c\u6709\u5411\u8d21\u732e\u5219\u76f8\u53cd\u3002\u5b83\u8bf4\u660e\u8d1f\u62c5\u4e0e\u65b9\u5dee\u6210\u5206\u65b9\u6cd5\u5173\u6ce8\u7684\u4fe1\u53f7\u4e0d\u540c\uff0c\u4e0d\u80fd\u628a\u8fd9\u4e24\u4e2a\u6784\u9020\u6570\u5b57\u89e3\u91ca\u4e3a SKAT \u7684\u68c0\u9a8c\u91cf\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">G &lt;- rbind(c(1,0),c(0,1))\ncbind(burden=rowSums(G),signed=drop(G%*%c(1,-1)))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\uff0c<code>SKAT()<\/code>\u51fd\u6570\u7684\u8f93\u51fa\u5305\u62ec\u68c0\u9a8c\u7edf\u8ba1\u91cf\u3001p\u503c\u4ee5\u53ca\u4e00\u4e9b\u4e2d\u95f4\u8ba1\u7b97\u7ed3\u679c\u3002\u8fd9\u4e9b\u7ed3\u679c\u7684\u89e3\u91ca\u9700\u8981\u7ed3\u5408\u8f93\u5165\u6570\u636e\u548c\u6a21\u578b\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u5982\u679c\u67d0\u4e2a\u96c6\u5408\u7684p\u503c\u663e\u8457\uff0c\u8bf4\u660e\u8be5\u96c6\u5408\u4e2d\u7684\u53d8\u5f02\u5bf9\u7ed3\u5c40\u5177\u6709\u8054\u5408\u6548\u5e94\u3002\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u6548\u5e94\u53ef\u80fd\u53d7\u5230\u6837\u672c\u5206\u5e03\u3001\u534f\u53d8\u91cf\u63a7\u5236\u4ee5\u53ca\u53d8\u5f02\u6743\u91cd\u8bbe\u7f6e\u7684\u5f71\u54cd\u3002\u56e0\u6b64\uff0c\u5728\u89e3\u91ca\u7ed3\u679c\u65f6\uff0c\u5e94\u7efc\u5408\u8003\u8651\u8fd9\u4e9b\u56e0\u7d20\u3002\u5982\u679c\u53d1\u73b0\u7ed3\u679c\u4e0e\u9884\u671f\u4e0d\u7b26\uff0c\u9700\u8981\u68c0\u67e5\u8f93\u5165\u6570\u636e\u662f\u5426\u6b63\u786e\uff0c\u6a21\u578b\u8bbe\u7f6e\u662f\u5426\u5408\u7406\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u7ec3\u4e60\u4e2d\uff0c\u77e9\u9635\u7684\u884c\u548c\u5217\u7684\u548c\u53ef\u4ee5\u63d0\u4f9b\u5173\u4e8e\u53d8\u5f02\u5206\u5e03\u7684\u76f4\u89c2\u4fe1\u606f\u3002\u7b2c\u4e00\u884c\u7684\u548c\u4e3a3\uff0c\u8868\u793a\u8be5\u6837\u672c\u643a\u5e26\u4e09\u79cd\u53d8\u5f02\u3002\u4f46\u5217\u7684\u548c\u5206\u522b\u4e3a1\u30011\u30011\uff0c\u8bf4\u660e\u6bcf\u79cd\u53d8\u5f02\u90fd\u53ea\u88ab\u4e00\u4e2a\u6837\u672c\u643a\u5e26\u3002\u8fd9\u79cd\u7ed3\u6784\u8868\u660e\uff0c\u867d\u7136\u53d8\u5f02\u4f4d\u70b9\u6570\u8f83\u591a\uff0c\u4f46\u5b9e\u9645\u643a\u5e26\u8005\u6570\u5f88\u5c11\u3002\u8fd9\u79cd\u73b0\u8c61\u5728\u7f55\u89c1\u53d8\u5f02\u5206\u6790\u4e2d\u8f83\u4e3a\u5e38\u89c1\uff0c\u5c24\u5176\u5728\u6837\u672c\u91cf\u8f83\u5c0f\u6216\u53d8\u5f02\u9891\u7387\u6781\u4f4e\u7684\u60c5\u51b5\u4e0b\u3002\u56e0\u6b64\uff0c\u5fc5\u987b\u901a\u8fc7\u5b9e\u9645\u7684\u643a\u5e26\u8005\u6570\u91cf\u6765\u5224\u65ad\u53d8\u5f02\u96c6\u5408\u7684\u7edf\u8ba1\u610f\u4e49\uff0c\u800c\u4e0d\u662f\u4ec5\u4ec5\u4f9d\u636e\u4f4d\u70b9\u6570\u3002\u8fd9\u79cd\u5224\u65ad\u6709\u52a9\u4e8e\u907f\u514d\u56e0\u4f4d\u70b9\u6570\u8bef\u5bfc\u800c\u5bfc\u81f4\u7684\u9519\u8bef\u7ed3\u8bba\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u7528\u8fde\u7eed\u7ed3\u5c40\u96f6\u6a21\u578b\u5b9e\u8dd1\u5355\u57fa\u56e0\u96c6\u5408\u68c0\u9a8c<\/h2>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">set.seed(11)\nn&lt;-120\nage&lt;-rnorm(n)\ny&lt;-rnorm(n)+.3*age\nG&lt;-sapply(c(.08,.1,.15,.2,.05),function(p)rbinom(n,2,p))\nf&lt;-SKAT::SKAT_Null_Model(y~age,out_type=\"C\")\na&lt;-SKAT::SKAT(G,f)\nc(nrow(G),ncol(G),a$p.value)\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728 R 4.5.2\u3001SKAT 2.2.5 \u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u53d7\u8bd5\u8005 120\uff0c\u53d8\u5f02 5\uff0c\u96c6\u5408 P \u503c 0.02\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u9047\u5230\u5f02\u5e38\uff0c\u5148\u6838\u5bf9\u54ea\u4e00\u9879<\/h2>\n<p style=\"margin:.5em 0 1em\">\u68c0\u67e5\u5404\u96c6\u5408\u7684\u643a\u5e26\u8005\u6570\u3001\u5355\u6001\u4f4d\u70b9\u548c\u75c5\u4f8b\u5bf9\u7167\u4e0d\u5e73\u8861\u7a0b\u5ea6\u3002\u5c0f\u6837\u672c\u6216\u6781\u7a00\u6709\u96c6\u5408\u9700\u91c7\u7528\u9002\u914d\u7684\u68c0\u9a8c\u8bbe\u7f6e\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u7b2c\u4e8c\u7c7b\u95ee\u9898\u6d89\u53ca\u53d8\u5f02\u5206\u5e03\u7684\u4e0d\u5747\u8861\u3002\u5982\u679c\u53d8\u5f02\u96c6\u4e2d\u4e8e\u5c11\u6570\u6837\u672c\uff0c\u53ef\u80fd\u5bfc\u81f4\u68c0\u9a8c\u7ed3\u679c\u7684\u504f\u5dee\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u57fa\u56e0\u96c6\u5408\u4e2d\uff0c\u5982\u679c\u6240\u6709\u53d8\u5f02\u90fd\u7531\u4e00\u4e2a\u6216\u4e24\u4e2a\u6837\u672c\u643a\u5e26\uff0c\u90a3\u4e48\u8be5\u96c6\u5408\u7684\u7edf\u8ba1\u610f\u4e49\u4f1a\u53d7\u5230\u8d28\u7591\u3002\u6b64\u65f6\uff0c\u9700\u8981\u901a\u8fc7\u68c0\u67e5\u643a\u5e26\u8005\u6570\u91cf\u6765\u5224\u65ad\u662f\u5426\u9002\u5408\u4f7f\u7528SKAT\u65b9\u6cd5\u3002\u5982\u679c\u643a\u5e26\u8005\u6570\u91cf\u8fc7\u5c11\uff0c\u53ef\u80fd\u9700\u8981\u91c7\u7528\u5176\u4ed6\u65b9\u6cd5\u8fdb\u884c\u5206\u6790\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\u75c5\u4f8b\u4e0e\u5bf9\u7167\u7684\u5206\u5e03\u60c5\u51b5\uff0c\u4ee5\u786e\u4fdd\u53d8\u5f02\u7684\u5206\u5e03\u7b26\u5408\u7814\u7a76\u8bbe\u8ba1\u7684\u9884\u671f\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fdb\u884c\u654f\u611f\u6027\u5206\u6790\u65f6\uff0c\u8fd8\u9700\u8981\u8003\u8651\u4e0d\u540c\u6743\u91cd\u8bbe\u7f6e\u5bf9\u68c0\u9a8c\u7ed3\u679c\u7684\u5f71\u54cd\u3002SKAT\u65b9\u6cd5\u5141\u8bb8\u4f7f\u7528\u4e0d\u540c\u7684\u6743\u91cd\u51fd\u6570\u6765\u8ba1\u7b97\u53d8\u5f02\u7684\u8054\u5408\u6548\u5e94\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ebf\u6027\u52a0\u6743\u6216\u5e73\u65b9\u6839\u52a0\u6743\u7b49\u4e0d\u540c\u65b9\u6cd5\u3002\u901a\u8fc7\u6bd4\u8f83\u4e0d\u540c\u6743\u91cd\u4e0b\u7684\u7ed3\u679c\uff0c\u53ef\u4ee5\u5224\u65ad\u6743\u91cd\u9009\u62e9\u5bf9\u68c0\u9a8c\u7ed3\u8bba\u7684\u5f71\u54cd\u3002\u5982\u679c\u4e0d\u540c\u6743\u91cd\u4e0b\u7684\u7ed3\u679c\u5dee\u5f02\u8f83\u5927\uff0c\u8bf4\u660e\u7ed3\u679c\u53ef\u80fd\u5bf9\u6743\u91cd\u8bbe\u7f6e\u654f\u611f\u3002\u6b64\u65f6\uff0c\u9700\u8981\u6839\u636e\u7814\u7a76\u76ee\u7684\u9009\u62e9\u5408\u9002\u7684\u6743\u91cd\u65b9\u6cd5\uff0c\u4ee5\u786e\u4fdd\u5206\u6790\u7ed3\u679c\u7684\u5408\u7406\u6027\u3002\u8fd9\u79cd\u5206\u6790\u6709\u52a9\u4e8e\u63d0\u9ad8\u68c0\u9a8c\u65b9\u6cd5\u7684\u9002\u7528\u6027\uff0c\u4f7f\u5176\u66f4\u7b26\u5408\u5b9e\u9645\u7814\u7a76\u9700\u6c42\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u4f7f\u7528SKAT\u65b9\u6cd5\u65f6\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u68c0\u9a8c\u65b9\u6cd5\u7684\u9002\u7528\u8303\u56f4\u3002\u5bf9\u4e8e\u6781\u5c0f\u75c5\u4f8b\u8ba1\u6570\u7684\u60c5\u51b5\uff0c\u9700\u8981\u7279\u522b\u8c28\u614e\u3002\u5982\u679c\u75c5\u4f8b\u6570\u91cf\u5f88\u5c11\uff0c\u53ef\u80fd\u5bfc\u81f4\u68c0\u9a8c\u7edf\u8ba1\u91cf\u7684\u4f30\u8ba1\u4e0d\u7a33\u5b9a\u3002\u6b64\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u5982<code>SKATBinary()<\/code>\u8fdb\u884c\u5206\u6790\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u65b9\u6cd5\u7684\u7ed3\u679c\uff0c\u53ef\u4ee5\u5224\u65ad\u68c0\u9a8c\u65b9\u6cd5\u7684\u9002\u7528\u6027\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\u6837\u672c\u7684\u75c5\u4f8b\u5bf9\u7167\u5206\u5e03\uff0c\u786e\u4fdd\u5176\u7b26\u5408\u7814\u7a76\u8bbe\u8ba1\u7684\u8981\u6c42\u3002\u5982\u679c\u53d1\u73b0\u75c5\u4f8b\u6570\u91cf\u8fc7\u5c11\uff0c\u53ef\u80fd\u9700\u8981\u8c03\u6574\u6837\u672c\u9009\u62e9\u7b56\u7565\u6216\u4f7f\u7528\u5176\u4ed6\u7edf\u8ba1\u5de5\u5177\u8fdb\u884c\u8865\u5145\u5206\u6790\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5e26\u56de\u539f\u59cb\u89c2\u6d4b\u518d\u68c0\u67e5\u4e00\u6b21<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4ece\u4e00\u4e2a\u57fa\u56e0\u96c6\u5408\u91cc\u6311\u51e0\u4f4d\u643a\u5e26\u8005\uff0c\u5217\u51fa\u5176\u5404\u81ea\u7684\u7a00\u6709\u7b49\u4f4d\u6570\u4e0e\u6709\u6548\u5206\u578b\u4f4d\u70b9\u6570\u3002\u5341\u4e2a\u53d8\u5f02\u5168\u5728\u540c\u4e00\u4eba\u8eab\u4e0a\uff0c\u548c\u5341\u4f4d\u4e0d\u540c\u53d7\u8bd5\u8005\u5404\u6709\u4e00\u4e2a\uff0c\u4f4d\u70b9\u6570\u76f8\u540c\uff0c\u652f\u6301\u7ed3\u6784\u5374\u4e0d\u540c\u3002\u5148\u68c0\u67e5\u8868\u578b\u3001\u534f\u53d8\u91cf\u548c\u57fa\u56e0\u578b\u6837\u672c\u987a\u5e8f\uff0c\u518d\u5efa\u7acb\u4e0e\u7ed3\u5c40\u76f8\u7b26\u7684\u96f6\u6a21\u578b\u3002\u82e5\u6309\u529f\u80fd\u6216\u9891\u7387\u8fc7\u6ee4\u6539\u53d8\u96c6\u5408\uff0c\u987b\u4fdd\u5b58\u7eb3\u5165\u4f4d\u70b9\u4e0e\u643a\u5e26\u8005\u6570\uff0c\u89e3\u91ca\u663e\u8457\u7ed3\u679c\u65f6\u624d\u80fd\u8bc4\u4f30\u662f\u5426\u7531\u5355\u4e2a\u6837\u672c\u51b3\u5b9a\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6311\u4e00\u4e2a\u6709\u8db3\u591f\u8986\u76d6\u3001\u6807\u8bc6\u660e\u786e\u7684\u4f4d\u7f6e\uff0c\u628a\u8be5\u4f4d\u7f6e\u7684\u4e24\u4e2a\u7b49\u4f4d\u3001\u4f7f\u7528\u7684\u53c2\u8003\u7248\u672c\u548c\u6837\u672c\u987a\u5e8f\u9010\u9879\u6838\u5bf9\u3002\u82e5\u8d44\u6599\u53ea\u6709\u6c47\u603b\u7edf\u8ba1\uff0c\u4e5f\u8981\u628a\u6548\u5e94\u65b9\u5411\u8ffd\u5230\u5177\u4f53\u7684\u7b49\u4f4d\u5b9a\u4e49\u3002\u4e00\u4e2a\u7b49\u4f4d\u540d\u79f0\u5199\u53cd\uff0c\u5e38\u4f1a\u7559\u4e0b\u770b\u4f3c\u5408\u7406\u7684\u7edd\u5bf9\u503c\uff0c\u5374\u628a\u65b9\u5411\u98a0\u5012\u3002\u5bf9\u6765\u81ea\u4e0d\u540c\u53c2\u8003\u9762\u677f\u7684\u8d44\u6599\uff0c\u9891\u7387\u76f8\u8fd1\u662f\u4e00\u79cd\u652f\u6301\uff0c\u9891\u7387\u4e0d\u76f8\u8fd1\u8fd8\u53ef\u80fd\u6d89\u53ca\u7956\u6e90\u3001\u6d4b\u5e8f\u8303\u56f4\u548c\u6837\u672c\u9009\u62e9\uff0c\u4e0d\u80fd\u5355\u51ed\u4e00\u5217\u9891\u7387\u81ea\u52a8\u7ffb\u8f6c\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u518d\u628a\u8be5\u4f4d\u70b9\u653e\u56de\u5468\u56f4\u7684\u8bc1\u636e\u4e2d\u3002\u82e5\u4f9d\u8d56\u90bb\u8fd1\u6807\u8bb0\u6216\u6210\u7247\u4fe1\u53f7\uff0c\u8bb0\u5f55\u90bb\u8fd1\u6807\u8bb0\u7684\u5bc6\u5ea6\u3001\u53ef\u7528\u89c2\u6d4b\u6570\u53ca\u79bb\u6700\u8fd1\u4e00\u4e2a\u6709\u6548\u4f4d\u7f6e\u591a\u8fdc\u3002\u82e5\u4f9d\u8d56\u4e2a\u4f53\u5c42\u91cd\u590d\u6216\u8868\u578b\u5173\u8054\uff0c\u5219\u6309\u4eba\u7edf\u8ba1\u5b9e\u9645\u53c2\u4e0e\u4f30\u8ba1\u7684\u6837\u672c\u6570\u3002\u8fd9\u6837\u80fd\u8bc6\u522b\u4e00\u79cd\u5f88\u5e38\u89c1\u7684\u843d\u5dee\uff0c\u6587\u4ef6\u6709\u8bb8\u591a\u884c\u6216\u6a21\u578b\u7ed9\u51fa\u5f88\u7a84\u7684\u5019\u9009\u5217\u8868\uff0c\u4f46\u652f\u6491\u8fd9\u4e2a\u5c40\u90e8\u7ed3\u8bba\u7684\u72ec\u7acb\u89c2\u6d4b\u5e76\u6ca1\u6709\u770b\u8d77\u6765\u90a3\u4e48\u591a\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e0b\u8f7d\u4ee3\u7801\u548c\u793a\u4f8b\u6570\u636e\uff0c\u5728 Linux \u4e0a\u590d\u73b0<\/h2>\n<p style=\"margin:.5em 0 1em\"><a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/076-skat-code-ac399fa2720302bc.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c4.2 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/076-skat-data-cedb4db4cc64f058.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c6.6 KiB\uff09<\/a><\/p>\n<p style=\"margin:.5em 0 1em\">\u5c06\u4e24\u4e2a ZIP \u89e3\u538b\u5230\u540c\u4e00\u4f4d\u7f6e\uff0c\u8fdb\u5165 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">076-skat<\/code> \u76ee\u5f55\uff0c\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla run.R<\/code>\u3002\u6253\u5f00 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">results\/metrics.tsv<\/code> \u67e5\u770b\u7ed3\u679c\uff0c\u4ee3\u7801\u5305\u4e2d\u7684 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">expected\/metrics.tsv<\/code> \u53ef\u4f9b\u9010\u884c\u6838\u5bf9\u3002\u8981\u91cd\u505a\u6587\u4e2d\u7684\u4e24\u4e2a\u6570\u503c\u7ec3\u4e60\uff0c\u53ef\u7ee7\u7eed\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla checks.R<\/code>\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u672c\u6b21\u4ece\u4e0b\u8f7d\u5305\u590d\u73b0\u7684\u6b65\u9aa4\u662f\u201c\u7528\u8fde\u7eed\u7ed3\u5c40\u96f6\u6a21\u578b\u5b9e\u8dd1\u5355\u57fa\u56e0\u96c6\u5408\u68c0\u9a8c\u201d\u3002Linux x86_64\u3001R 4.5.2\u3001SKAT 2.2.5 \u7684\u8f93\u51fa\u4e3a\u53d7\u8bd5\u8005 120\uff0c\u53d8\u5f02 5\uff0c\u96c6\u5408 P \u503c 0.019032805\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4fdd\u6301\u5e74\u9f84\u4e0e\u7ed3\u5c40\u7684\u96f6\u6a21\u578b\u4e00\u81f4\uff0c\u5148\u6838\u5bf9\u57fa\u56e0\u578b\u77e9\u9635\u7684\u4e2a\u4f53\u987a\u5e8f\uff0c\u518d\u770b\u6bcf\u4e2a\u53d8\u5f02\u7684\u643a\u5e26\u4eba\u6570\u3002\u8fd4\u56de\u7684\u4e00\u4e2a P \u503c\u5c5e\u4e8e\u6574\u4e2a\u53d8\u5f02\u96c6\u5408\u3002\u82e5\u8981\u8bf4\u660e\u7531\u8c01\u9a71\u52a8\uff0c\u5e94\u9010\u4e00\u79fb\u9664\u5019\u9009\u53d8\u5f02\u505a\u654f\u611f\u6027\u5206\u6790\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5b9e\u8dd1\u540e\u7684\u7ecf\u9a8c\u603b\u7ed3<\/h2>\n<p style=\"margin:.5em 0 1em\">\u6a21\u62df\u8fde\u7eed\u6027\u72b6\u4e0e\u57fa\u56e0\u578b\u672c\u6765\u662f\u72ec\u7acb\u751f\u6210\u7684\uff0c\u8fd9\u4e00\u6b21\u96c6\u5408\u68c0\u9a8c\u4ecd\u8fd4\u56de\u4e86\u4e00\u4e2a\u8f83\u5c0f P \u503c\u3002\u5b83\u751f\u52a8\u5730\u8bf4\u660e\u5355\u6b21\u663e\u8457\u5b8c\u5168\u53ef\u80fd\u53d1\u751f\u5728\u65e0\u9884\u8bbe\u6548\u5e94\u7684\u6a21\u62df\u91cc\u3002\u771f\u5b9e\u5168\u5916\u663e\u5b50\u5206\u6790\u8fd8\u8981\u6838\u67e5\u591a\u4e2a\u96c6\u5408\u7684\u68c0\u9a8c\u8303\u56f4\u3001\u643a\u5e26\u8005\u662f\u5426\u96c6\u4e2d\u3001\u6a21\u578b\u5047\u8bbe\u4e0e\u590d\u73b0\u961f\u5217\u3002<\/p>\n<p style=\"border-top:1px solid #DAE6F2;margin-top:2em;padding-top:1em;\">\u5c0f\u6837\u672c\u7684\u8ba1\u6570\u548c\u5224\u65ad\u6807\u51c6\u6838\u5bf9\u6e05\u695a\u540e\uff0c\u82e5\u8981\u628a\u540c\u4e00\u6d41\u7a0b\u7528\u4e8e\u6574\u6279\u6837\u672c\uff0c\u53ef\u4ee5\u5e26\u4e0a\u8f93\u5165\u89c4\u6a21\u548c\u5df2\u7ecf\u8dd1\u901a\u7684 R \u811a\u672c\uff0c\u6309\u9879\u76ee\u5468\u671f\u4f7f\u7528<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\" style=\"color:#185CB7;text-decoration:underline;\" data-ysx-event=\"contact_click\">\u4e91\u751f\u4fe1\u751f\u7269\u4fe1\u606f\u5b66\u5206\u6790\u670d\u52a1\u5668<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e24\u884c\u4e09\u5217\u7684\u6f14\u7b97\u77e9\u9635\u6240\u6709\u975e\u96f6\u90fd\u6765\u81ea\u7b2c\u4e00\u4eba\uff0c\u4e09\u79cd\u53d8\u5f02\u5374\u53ea\u6709\u4e00\u4f4d\u643a\u5e26\u8005\u3002<\/p>\n","protected":false},"author":1,"featured_media":68754,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[47,1],"tags":[728,801,796],"class_list":["post-68755","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-r","tag-skat","tag-796"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-skat-practice-59790bb1.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=68755"}],"version-history":[{"count":4,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68755\/revisions"}],"predecessor-version":[{"id":70936,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68755\/revisions\/70936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68754"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}