Search notes:

SAS: proc tabulate / Example 01

data tq84_dat;
  length category $3 val 8.;
  input  category    val   ;
datalines;
foo 14
foo 29
baz  6
foo 81
bar 83
baz  8
bar  9
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/00-data.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table val = 'Avg. Value',
        category*mean;
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/01.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table val           = 'Avg. Value',
        category*mean = '';
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/02.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table val           = 'Value',
        category*mean = ''
      / box           = 'Avg.';
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/03.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table val      = 'Value',
        category = '' * mean = ''
      / box      = 'Avg.';
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/04.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table category = '' *mean = '',
        val      = 'Avg.';
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/05.sas
proc tabulate data=tq84_dat;
  class category;
  var   val;
  table category = '' * mean = '',
        val      = 'Avg.'
      / row      =  float;
run;
Github repository about-SAS, path: /programming/proc/tabulate/ex_01/06.sas

See also

proc tabulate

Index