SAS:PROC UNIVARIATE:将修剪后的平均值输出到数据集 [英] SAS: PROC UNIVARIATE: Output trimmed mean to dataset
本文介绍了SAS:PROC UNIVARIATE:将修剪后的平均值输出到数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在执行以下操作,将平均值输出到数据集:
I'm doing the following the output the mean to a datset:
PROC UNIVARIATE DATA=have trimmed=0.05;
VAR age;
by sex;
output out=outputstats mean=theMean;
run;
proc print; run;
如何输出修剪后的平均值?我找不到要请求的关键字,所以我可以选择它.
How can I output the trimmed mean? I can't find the keyword to request so I can select it.
推荐答案
ODS OUTPUT
进行救援.使用 ODS TRACE ON;
查找名称.
ODS OUTPUT
to the rescue. Use ODS TRACE ON;
to find the name.
proc sort data=sashelp.class out=have;
by sex;
run;
ods trace on;
PROC UNIVARIATE DATA=have trimmed=0.05;
VAR age;
by sex;
ods output TrimmedMeans=trimmedMeans;
run;
ods trace off;
这篇关于SAS:PROC UNIVARIATE:将修剪后的平均值输出到数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文