DJJ
DJJ

Reputation: 2549

How to format the proc means results?

proc mean data =table A  mean;
var interestRate;
run;

The variable interest rate is already in percentage format in table A. But the proc means doesn't return the results in percentage. How to get the mean interst rate in percentage format when doing the proc means?

Upvotes: 0

Views: 3264

Answers (1)

Joe
Joe

Reputation: 63434

I don't believe there's any way to format the output directly. You can use a format statement to change how the data would be formatted in an output dataset, and then use PROC REPORT or similar to produce output similar to PROC MEANS output. You might also consider PROC TABULATE if it's a fairly simple table.

Upvotes: 1

Related Questions