Graphics Examples

Example 2 – Mean Age by Dose

This example shows mean of age for each dose group, with standard error bars above.

  • bar= assigns the bar variable.
  • gtype=mean specifies bars represent mean values.
  • sumvar=specifies variable to be summarized.
  • errorvar=top displays error bars.
  • opts=options for the VBAR statement.
  • dsp_n=N suppresses display of number of observations.
  • dsp_mean=Y specifies to display mean values.
  • txt_mean=Z= labels the means.

%graph1(in=adsl,
     bar=sex,
     group=trt01a,
     gtype=mean,
     sumvar=age, 
     errorbar=top,
     zeroaxis=y,
     opts=discrete coutline=black space=4,
     dsp_n=n,
     dsp_mean=y,
     meanlen=8.2,
     dsp_size=1.1);