第10章秩和检验总结.ppt

第十章 秩 和 检 验 (一)方法步骤 data li10_1; input x1 x2@@; d=x1-x2; cards; 39 55 42 47 51 53 43 41 55 54 45 63 22 42 48 46 40 43 45 49 40 37 49 52 ; proc univariate ; var d ; run; Tests for Location: Mu0=0 Test -Statistic- -----p Value------ Students t t -2.23208 Pr |t| 0.0474 Sign M -2 Pr = |M| 0.3877 Signed Rank S -26 Pr = |S| 0.0435 0.01 0.02 0.05 0.10 0.10 0.05 0.02 0.01 76 79 84 89 141 146 151 154 data li10_3; do c=1 to 2; input n@@; do i=1 to n; input x@@; output; end; end; cards; 10 10 12 15 15 16 17 18 20 23 90 12 2 3 4 5 6 7 8 9 10 11 12 13 ; proc univariate normal; class c; var x; proc npar1way wilcoxon; class c; var x; run; Wilcoxon Scores (Rank Sums) for Variable x Classified by Variable c Sum of Expected Std Dev Mean c N Scores Under H0 Under H0 Score 1 10 170.0 115.0 15.152900 17.000000 2 12 83.0 138.0 15.152900 6.916667 Average scores were used for ties. Wilcoxon Two-Sample Test Statistic 170.0000 Normal Approximation Z 3.5967 One-Sided Pr Z 0.0002 Two-Sided Pr |Z| 0.0003 t Approximation One-Sided Pr Z 0.0008 Two-Sided Pr |Z| 0.0017 4、确定P值和得出推断结论 查附表2 t界值表,?=?得单侧P0.01,按?=0.05水准拒绝H0,接受H1,故可以认为家庭功能良好的糖尿病患者的血糖控制情况优于家庭

文档评论(0)

1亿VIP精品文档

相关文档