Graphics Examples

Example 1 – Frequency of Adverse Events

This example shows frequency of adverse events with N and percent shown on each bar.

  • datyes= specifies condition to select obs to be summarized.
  • bar=specifies bar variable.
  • nlabel=Y displays (N=xx) for bar variable.
  • group=groups sets of bars.
  • totalg=N suppresses display of Total group.
  • count=patients counts unique patients for each event.
  • order=data orders groups by data values.
  • dsp_n=Y specifies to display frequency above each bar.
  • txt_n=N= labels the frequencies.
  • dsp_pct=Y displays percentages.
  • opts=options for the HBAR statement.

%graph2(in=adae, 
     datyes=not missing(aedecod),
     bar=trt01a,
     group=aedecod,
     nlabel=y,
     totalg=n,
     count=patients,
     order=data,
     dsp_n=y,
     txt_n=N=,
     dsp_pct=y,
     pctlen=8.1,
     dsp_size=1.1,
     opts=discrete coutline=black);