SAS中文论坛

标题: 请问sas里哪个过程可以计算binomial z statistic [打印本页]

作者: shiyiming    时间: 2006-5-8 07:48
标题: 请问sas里哪个过程可以计算binomial z statistic
想进行配对样本比较.试着找了一下,发现proc univariate和proc npar1way里面似乎都没有。难道sas里面没有吗,请高手指点啊!!!
多谢!
作者: shiyiming    时间: 2006-5-8 17:05
标题: @
似乎只能编程
作者: shiyiming    时间: 2006-5-8 17:37
标题: to mcbill
上次在一个人的网页上看到过,不知道是不是你要得,不过他是用SPSS作的,sas估计不莱塞了
作者: shiyiming    时间: 2006-5-8 19:28
标题: 配对数据样本的均值检验
介绍SAS的配对数据t检验,用ttest过程
    每个个体同时观测两个变量,则获得配对数据样本,由于变量间可能存在的相关性,两个变量的数据不能作为彼此独立样本处理。配对数据t检验,先求两变量每对数据的差值,再将差值作为一个样本进行指定均值差的t检验。
■SAS程序示例
proc ttest data=sasuser.datarecord H0=-3.74;
paired examination*total;
run;
■程序注释
过程选项H0=-3.74指定零假设 -3.74(指定均值差),检验差值总体的均值是否为-3.74。语句paired examination*total指定要取差值的两个变量,注意两变量用符号“ * ”连接。
作者: shiyiming    时间: 2006-5-9 16:45
标题: to wangyushun
数据要正态,他是‘二项耶~~~~~
作者: shiyiming    时间: 2006-5-10 02:23
标题: use proc freq, binomial
proc freq;
      weight Count;
      tables Eyes / binomial alpha=.1;
      tables Hair / binomial(p=.28);
run;

The BINOMIAL option computes the binomial proportion and confidence limits, and it tests the hypothesis that the proportion for the first eye color level (brown) is 0.5.

You can get 95% CI by using alpha=.05, this is the default.
The option ALPHA=.1 specifies that 90% confidence limits should be computed.


The output will be like this:

Test of H0: Proportion = 0.5
ASE under H0 0.0181
Z -2.8981
One-sided Pr < Z 0.0019
Two-sided Pr > |Z| 0.0038

IF YOU WANT TO CHANGE THE HO: proportion=.28, you can use
      tables Hair / binomial(p=.28);

Good Luck.
作者: shiyiming    时间: 2006-5-10 16:52
标题: to zzheng722
定比定比数据也可以用freq吗?不是他只适用定序定类?
作者: shiyiming    时间: 2006-5-12 00:45
标题: binorminal distribution
Can you tell me the english names of '定比定比数据' and '定序定类'? Sorry, I learned my statistics in English.But I guess it applys to all kinds of data. you can post your data here and I will help you to decide.
作者: shiyiming    时间: 2006-5-15 16:52
标题: to zzheng722
定比数据'  可能是definite proportion data吧




欢迎光临 SAS中文论坛 (http://mysas.net/forum/) Powered by Discuz! X3.2