标题: 再次请教 [打印本页] 作者: shiyiming 时间: 2008-3-17 21:04 标题: 再次请教 data result(drop=sum);
set result;
retain sum mean;
if _n_=1 then sum=0;
sum+log(volume);
if _n_=61 then mean=sum/61;
if _n_>61 then do;
abVolume=log(volume)-mean;
output;
end;
run;
用这段代码算出abvolume 后想看看abvolume 数据是不是significant的比如说要做t-test, 应该再怎么写呢,谢谢啦作者: shiyiming 时间: 2008-3-22 02:42 标题: Re: 再次请教 I am not so sure how you want to do the test, but for one-sample t-test, here is the way to do it.