Help using Base SAS procedures

outputting trimmed means from PROC UNIVARIATE

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

outputting trimmed means from PROC UNIVARIATE

I am using the TRIMMED= option on PROC UNIVARIATE to lop off the top and bottom 2% of cases:

proc univariate data=stuff trimmed=.02;

  var cost;

  output out=cost_summ mean=mean std=std;

  run;

 

The "paper" output shows the trimmed statistics, but the output dataset contains the untrimmed figures. This makes me unhappy.

 

Is there a way to have the PROC output the trimmed measures?

 

Thanks in advance ... .


Accepted Solutions
Solution
‎10-08-2015 12:34 PM
Respected Advisor
Posts: 4,925

Re: outputting trimmed means from PROC UNIVARIATE

Posted in reply to dan_waldo

Use ODS. Add statement

 

ods output TrimmedMeans=myTrimmedMeans;

to proc univariate.

PG

View solution in original post


All Replies
Solution
‎10-08-2015 12:34 PM
Respected Advisor
Posts: 4,925

Re: outputting trimmed means from PROC UNIVARIATE

Posted in reply to dan_waldo

Use ODS. Add statement

 

ods output TrimmedMeans=myTrimmedMeans;

to proc univariate.

PG
Occasional Contributor
Posts: 10

Re: outputting trimmed means from PROC UNIVARIATE

Yep, that solved the problem ... thanks, PGStats!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 520 views
  • 1 like
  • 2 in conversation