SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 50217: Plot means with standard error bars from calculated data for groups with PROC GPLOT

DetailsCodeResultsAboutRate It
This sample illustrates how to plot means with standard error bars from calculated data for groups with the GPLOT procedure.

You can use a procedure such as PROC MEANS to calculate the means and standard errors. You can then use these values to calculate the upper and lower error bar limits in a DATA step. Use the HILOCTJ interpolation with PROC GPLOT to generate the graph.

When plotting groups of data with the GPLOT procedure, you can offset the group values from one another by adding or subtracting a small value from the X-axis variable. The sample code on the Full Code tab illustrates this.


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.