06-10-2018
TristanTang
Calcite | Level 5
Member since
12-26-2017
- 5 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by TristanTang
Subject Views Posted 1195 05-24-2018 04:24 AM 1213 05-24-2018 03:28 AM 3495 01-01-2018 08:45 PM 3585 12-26-2017 11:58 PM 3615 12-26-2017 10:40 PM -
Activity Feed for TristanTang
- Posted Re: Set two dataset with if condition on SAS Programming. 05-24-2018 04:24 AM
- Posted Set two dataset with if condition on SAS Programming. 05-24-2018 03:28 AM
- Posted Re: How to thicken a dash line on Graphics Programming. 01-01-2018 08:45 PM
- Posted Re: How to thicken a dash line on Graphics Programming. 12-26-2017 11:58 PM
- Posted How to thicken a dash line on Graphics Programming. 12-26-2017 10:40 PM
05-24-2018
04:24 AM
Thanks for the answer. For me, uppercase is easier to read. Anyway, thank you for your suggestion!!
... View more
05-24-2018
03:28 AM
An example program is followed. i am wondering why the last observation in dataset C had a value of 'B' in the column OUTCOME? Thank you all!! DATA A; INPUT OBS $ OUTCOME $; CARDS; 1 A 2 B ; RUN; DATA B; INPUT OBS $ RESULT $; CARDS; 1 1 2 2 3 . ; RUN; DATA C; SET A(IN = A) B(IN = B); IF A THEN DATASET = 'A'; IF B THEN DO; DATASET = 'B'; IF RESULT = '1' THEN OUTCOME = 'A'; ELSE IF RESULT = '2' THEN OUTCOME = 'B'; END; RUN;
... View more
01-01-2018
08:45 PM
Although i still can't adjust the thickness directly output to RTF. The option of dataskin=crisp gives an acceptable solution. Thank you all.
... View more
12-26-2017
11:58 PM
Hi, Thank you so much for your reply. my question is, i have two line on the graph. Blue line (linestyle=2 LineThickness = 4px) is set thicker than red one (linestyle=1 LineThickness = 2px). But in the output, the thickness setting seems only effective on the red line (solid line). i would like to know how can i change the thickness for a dash line. class GraphData1 / contrastcolor=blue linestyle=2 LineThickness = 4px; class GraphData2 / contrastcolor=Red linestyle=1 LineThickness = 2px;
... View more
12-26-2017
10:40 PM
My data and SAS code are as below. i can change color and pattern for the step line.However, i can't change the thickness for a dash line. Is there way to thicken the dashline? Thanks. data plot; missing z; input Time Survival Event Censored Stratum $; ; datalines ; 0 1 0 .z Arm_A 1.971252567 0.944444444 1 .z Arm_A 3.811088296 .z 0 0.944444444 Arm_A 5.9137577 0.885416667 1 .z Arm_A 7.392197125 0.826388889 1 .z Arm_A 10.61190965 0.767361111 1 .z Arm_A 15.27720739 0.708333333 1 .z Arm_A 15.70431211 0.649305556 1 .z Arm_A 17.90554415 0.590277778 1 .z Arm_A 18.95687885 0.53125 1 .z Arm_A 19.8110883 0.472222222 1 .z Arm_A 23.22792608 0.413194444 1 .z Arm_A 23.9835729 0.354166667 1 .z Arm_A 28.32032854 0.295138889 1 .z Arm_A 28.91170431 0.236111111 1 .z Arm_A 32.98562628 0.177083333 1 .z Arm_A 37.48665298 0.118055556 1 .z Arm_A 38.57084189 0.059027778 1 .z Arm_A 45.30595483 0 1 .z Arm_A 0 1 0 .z Arm_B 2.694045175 0.95 1 .z Arm_B 3.712525667 0.9 1 .z Arm_B 5.223819302 0.85 1 .z Arm_B 7.030800821 0.8 1 .z Arm_B 7.983572895 0.75 1 .z Arm_B 8.936344969 0.7 1 .z Arm_B 9.46201232 0.65 1 .z Arm_B 10.67761807 0.6 1 .z Arm_B 12.45174538 0.55 1 .z Arm_B 14.88295688 0.5 1 .z Arm_B 16.26283368 0.45 1 .z Arm_B 18.29979466 .z 0 0.45 Arm_B 18.46406571 .z 0 0.45 Arm_B 21.45379877 0.385714286 1 .z Arm_B 23.35934292 0.321428571 1 .z Arm_B 26.7761807 0.257142857 1 .z Arm_B 29.37166324 .z 0 0.257142857 Arm_B 30.2587269 .z 0 0.257142857 Arm_B 33.67556468 .z 0 0.257142857 Arm_B 33.93839836 0 1 .z Arm_B ; run; proc template; define style styles.defstyle; parent=styles.statistical; class systemtitle / backgroundcolor = transparent fontfamily = "Arial" ; class systemfooter / backgroundcolor = transparent fontfamily = "Arial" ; class GraphDataDefault /LineThickness = 2px; class GraphData1 / contrastcolor=blue linestyle=2 LineThickness = 4px; class GraphData2 / contrastcolor=Red linestyle=1 LineThickness = 2px; end; run; ods _all_ close; ods rtf file='S1_ST.rtf' style=defstyle; goptions reset=goptions device=png; ods graphics on / reset ; proc sgplot data=plot description=""; step x=time y=survival / group=stratum name='s'; scatter x=time y=censored / markerattrs=(symbol=plus) name='c'; scatter x=time y=censored / markerattrs=(symbol=plus) GROUP=stratum; keylegend 's'/ location=inside position=right; yaxis min=0 label = 'Rate' LABELPOS=top; xaxis label = 'Months' LABELPOS=right VALUES=(0 to 66 by 6); inset 'Whisker: Censored'/ position = TOPRIGHT LABELALIGN=left; run; ods graphics off; ods rtf close;
... View more