SAS: PROC UNIVARIATE: Output trimmed mean to dataset

后端 未结 1 1782
生来不讨喜
生来不讨喜 2021-01-25 04:47

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         


        
相关标签:
1条回答
  • 2021-01-25 05:43

    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;
    
    0 讨论(0)
提交回复
热议问题