SAS: PROC UNIVARIATE: Output trimmed mean to dataset

。_饼干妹妹 提交于 2020-01-11 11:29:09

问题


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.


回答1:


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;


来源:https://stackoverflow.com/questions/20007979/sas-proc-univariate-output-trimmed-mean-to-dataset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!