Sample 35053: Mean percent change in allergy relief
This sample uses the SGPLOT procedure to create a hilo joined plot with banding.
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.
This sample uses the SAS® 9.2 SGPLOT procedure to create a hilo joined plot with banding.
proc format;
value $trt
'B' = "Treatment 20mg"
'S' = "Treatment 10mg"
'P' = "Placebo";
value visit
1='Baseline'
2='6 Months'
3='9 Months';
run;
data response;
input trt $ week perc lo hi end;
x1=15;
format trt $trt.;
cards;
P 0 0 0 0 .
P 3 2 1.25 2.75 .
P 6 -.5 -1.2 .5 .
P 9 1 -.5 1.75 .
P 12 2.25 .5 3.25 2.25
P 15 3 -.25 4.25 3.85
S 0 0 0 0 .
S 3 8 7.25 8.75 .
S 6 7.5 6.5 8.75 .
S 9 7.5 6.5 8.75 .
S 12 7.75 6.5 8.5 7.75
S 15 7.5 5.0 8.25 3.7
B 0 0 0 0 .
B 3 12 11.25 12.75 .
B 6 13 12.25 13.75 .
B 9 13.25 12.5 14.0 .
B 12 13 12.25 13.75 13
B 15 12.85 12.1 13.6 3.6
;
run;
title "Mean Percent Change from Baseline";
title2 " ";
ods listing close;
ods graphics / reset width=600px height=400px imagename='Allergy' imagefmt=gif;
ods html file='allergy.html' path='.' style=styles.default;
proc sgplot data=response;
band y=x1 lower=12.1 upper=15 / transparency=.8 fillattrs=graphdata1;
scatter x=week y=perc / group=trt yerrorlower=lo yerrorupper=hi
markerattrs=(symbol=circlefilled) name="scat";
series x=week y=perc / group=trt lineattrs=(pattern=solid);
series x=week y=end / group=trt markers lineattrs=(pattern=shortdash)
markerattrs=(symbol=circle);
xaxis integer values=(0 to 15 by 3) label="Weeks in Treatment";
yaxis label="Percent Change";
refline 0;
refline 13.55 / axis=x label="|--Washout--|"
labelloc=outside labelpos=min lineattrs=(thickness=0px);
keylegend "scat" / title="" noborder;
run;
ods html close;
ods listing;
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.
This sample uses the SGPLOT procedure to create a hilo joined plot with banding.
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> SGPLOT Query and Reporting ==> Creating Reports ==> Graphical ==> Health and Life Sciences Industry
|
Date Modified: | 2009-03-20 12:11:54 |
Date Created: | 2009-03-06 10:50:13 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | |