zydisney 发表于 2010-4-14 22:35 
我希望计算样本均值,但是有些case明显是离群值,因此希望计算除掉最大5%、最小5%,剩下90%样本的平均值,这在sas中怎么实现呢?谢谢。
You can use proc means tp calculate the quantiles. See example below,
data t1;
do ii = 1 to 500;
x=rannor(129);
output;
end;
run;
proc means data=t1 p1 p99;
var x;
run;