BookmarkSubscribeRSS Feed
Jinlf
Calcite | Level 5
proc template; define statgraph sgdesign; dynamic _VISIT _VALUE _GROUP _VISIT2 _VALUE2 _GROUP2 _UCL _LCL _VALUE3; begingraph / designwidth=731 designheight=524; entrytitle halign=center 'ABCD'; layout lattice / rowdatarange=data columndatarange=data rowgutter=10 columngutter=10; layout overlay / wallcolor=CXE8E6E8 xaxisopts=( offsetmin=0.1 offsetmax=0.1 label=('IJKL')) yaxisopts=( label=('EFGH')); seriesplot x=_VISIT y=_VALUE / group=_GROUP name='series' connectorder=xaxis lineattrs=(thickness=3 ); scatterplot x=_VISIT2 y=_VALUE2 / group=_GROUP2 datalabel=_VALUE3 yerrorupper=_UCL yerrorlower=_LCL name='scatter' clusterwidth=0.5 labelstrip=true datalabelposition=TOPLEFT markerattrs=(symbol=CIRCLEFILLED size=11 ) datalabelattrs=(size=12 ); endlayout; sidebar / align=bottom spacefill=false; discretelegend 'scatter' / opaque=true backgroundcolor=CXE8E6E8 border=true halign=center valign=bottom displayclipped=true across=2 order=rowmajor titleattrs=(size=14 ); endsidebar; endlayout; endgraph; end; run; proc sgrender data=WORK.AAAA template=sgdesign; dynamic _VISIT="VISIT" _VALUE="VALUE" _GROUP="GROUP" _VISIT2="VISIT" _VALUE2="VALUE" _GROUP2="GROUP" _UCL="UCL" _LCL="LCL" _VALUE3="VALUE"; run;
无标题.png
3 REPLIES 3
Jinlf
Calcite | Level 5
data aaaa; input group visit value lcl ucl; cards; 1 1 50 49 52 1 2 56 55 60 1 3 60 56 63 1 4 68 64 70 2 1 45 42 51 2 2 47 44 53 2 3 51 45 55 2 4 58 55 65 ; run;
ballardw
Super User

Which version of SAS are you using? There are significant changes in options in SAS 9.2, 9.3 and 9.4.

Jinlf
Calcite | Level 5
my sas version is 9.4.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 747 views
  • 0 likes
  • 2 in conversation