楼主: smile5152003
6613 20

[原创博文] 可否用means过程实现两组样本阳性率的t检验?并计算阳性率的可信区间? [推广有奖]

11
smile5152003 发表于 2011-10-17 11:05:36
jingju11 发表于 2011-10-15 06:58
sorry, i may misunderstand your question. Appraently, you need the rate and its confidence interval? ...
对,还想得出95% CI

12
mozhe922 发表于 2011-10-17 13:52:47
Z检验不是非参检验吧,可以考虑proc rank, 用新变量r来做proc ttest,proc means prt;来计算概率吧,不过只适和单样本均数和总体均数比较的情况下,关于样本率的95%可信区间,我认为,要考虑到每个样本率的具体分布问题了,一般二分类资料 在NP 以及N(1-p)都不大的时候可以近似正态分布,如果你的资料满足这种情况,可以用正态法计算,还可以考虑随机抽样(蒙特卡罗)抽取样本计算百分位数
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

13
smile5152003 发表于 2011-10-17 14:04:25
mozhe922 发表于 2011-10-17 13:52
Z检验不是非参检验吧,可以考虑proc rank, 用新变量r来做proc ttest,proc means prt;来计算概率吧,不过只 ...
恩,虽是一个简单问题,但方法多多

14
jingju11 发表于 2011-10-17 21:58:52
many statistics followed by normal distribution. I am not sure what Z test means.
  1. data a;
  2.         g =1; x =1; n =20; output;
  3.         g =0; x =1; n =30; output;
  4.         g =1; x =0; n =25; output;
  5.         g =0; x =0; n =40; output;
  6. run;
  7. proc freq;
  8.         table x *g/chisq;
  9.         weight n;
  10. run;
  11. *anova =t test (equal variance);
  12. *wilcoxon= u test;
  13. *kruskal wallis =uncorrected wilcxon;
  14. proc npar1way anova wilcoxon;
  15.         class g;
  16.         var x;
  17.         freq n;
  18. run;

  19. *conclusion:
  20. MH chisq is the same as uncorrected u test;
复制代码
Jingju

15
smile5152003 发表于 2011-10-18 09:51:31
jingju11 发表于 2011-10-17 21:58
many statistics followed by normal distribution. I am not sure what Z test means.Jingju
Z检验也就是U检验。
你说MH chisq is the same as uncorrected u test,我也是这个意思。我就是想用U检验的方法来进行检验,并且用U检验的方法来得到阳性率的可信区间,不知道用SAS怎么实现?

16
jingju11 发表于 2011-10-18 21:12:25
smile5152003 发表于 2011-10-18 09:51
Z检验也就是U检验。
你说MH chisq is the same as uncorrected u test,我也是这个意思。我就是想用U检验 ...
any specific reason NOT using Binomial proportion confidence interval? that was provided by FREQ?
JingJu

17
jingju11 发表于 2011-10-18 21:23:37
if need confidence interval for difference of proportion, SAS 9.3 comes with it.
  1. proc freq;
  2. tables x*y / riskdiff;
  3. run;
复制代码
JingJu

18
smile5152003 发表于 2011-10-19 09:51:47
jingju11 发表于 2011-10-18 21:12
any specific reason NOT using Binomial proportion confidence interval? that was provided by FREQ?
...
我就是想换一个思路换一个方法来解决这个问题,没有其他什么原因的,呵呵。
另外,freq过程可以得到CI 吗?9.3以下版本不知道能不能实现?

19
jingju11 发表于 2011-10-19 09:58:41
不必要换,无论means还是ttest,你的思路都是错的。京剧

20
smile5152003 发表于 2011-10-20 09:23:18
jingju11 发表于 2011-10-19 09:58
不必要换,无论means还是ttest,你的思路都是错的。京剧
恩?为什么是错的?可不可以说明一下错在哪里?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 14:10