Creating Tabular Reports |
Specifying
Statistics![]() ![]() |
Your final task before writing your own PROC TABULATE step is to specify
the statistics needed. To request a statistic, you use an operator, the asterisk
(*), to attach the statistic to the variable.
In the TABLE statements below, the statistic MEAN is specified for the variable
proc tabulate data=clinic.admit; var fee; table fee*mean; run; |
Fee |
Mean |
127.95 |
proc tabulate data=clinic.admit; var fee; table mean*fee; run; |
Mean |
Fee |
127.95 |
Rules for Specifying Statistics
Three rules apply to specifying statistics.
proc tabulate data=clinic.admit; class sex actlevel; var height weight; table height*mean weight*max,actlevel; table sex*pctn actlevel*n; run; |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.