SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 35143: Forest plot

DetailsCodeResultsAboutRate It
This sample uses the Graph Template Language (GTL) to produce a forest plot. The graph shows the effectiveness of a treatment based on multiple studies. The graph uses a five-column lattice layout. The second cell is a box plot showing the odds ratio and the confidence intervals. The other columns display various statistics.

The values for the OFFSETMIN and OFFSETMAX axis options are calculated in the DATA _NULL_ data step and saved in the PCT macro variable. In order to use this variable in the GTL, it is referenced on the DYNAMIC statement in the PROC TEMPLATE code. The PROC SGRENDER code specifies the value of the macro variable in a DYNAMIC statement.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.