Shift Tables

Example 2

This example demonstrates a SHIFT1 macro call using baseobs and postobs with baselist and postlist to select records and label categories. Row and column totals are displayed labeled ‘Total’. Records are excluded if either the baseline or post-baseline value is missing.

  • pct=N suppresses percentages.
  • totals=Y displays Total categories.
  • totalslabel= specifies text for Total categories.

%shift1(in=adlbc,
	pct=N,
	totals=Y,
	totalslabel=Total,
	basevar=bnrind,
	baseobs=ablfl = 'Y',
	baselbl=Range Flag Baseline,
	baselist='L'='Low' 'N'='Normal' 'H'='High',
	postvar=anrind,
	postobs=anl01fl='Y' and avisit='End of Treatment',
	postlbl=Range Flag End of Treatment,
	postlist='L'='Low' 'N'='Normal' 'H'='High',
	row=param,
	rowlen=11,
	suffix=02);