Variable labels in ods output for Proc ttest and Proc Means

Reply
Occasional Contributor
Posts: 18

Variable labels in ods output for Proc ttest and Proc Means

Hi All,

I'd like to know if it's possible to output only variable labels in proc ttest or proc means, as opposed to variable labels and variables.  Right now, I have a bunch of variables which I've renamed, and for display purposes only want the labels, as opposed to the full names, to appear in the ttest and means output.

if this is possible, i'm all ears.

Thanks!

Super User
Posts: 10,500

Re: Variable labels in ods output for Proc ttest and Proc Means

You can get most of the statistics from Means with Proc tabulate which will show labels unless there isn't one.

Proc tabulate data=have;

var var1 var2 var3 ;

tables var1 var2 vare,

          mean max min sum stddev;

run;

Much easier than modifying the base.summary template that means uses and could be modified by proc template.

 

proc template ;

path sashelp.tmplmst;

list stat.ttest / sort=path descending;

run;

Will list the items associated with Ttest. The Table entries can be modified using proc template but I don't have time to do any more at this time.

Ask a Question
Discussion stats
  • 1 reply
  • 335 views
  • 0 likes
  • 2 in conversation