Dear all
I'm using PROC LIFETEST to create a Kaplan Meier curve.
Example of code:
nocenter nodate number linesize=95 topmargin="2 cm" bottommargin="2 cm" papersize=A4;
rtf file= 'c:\Survival.rtf' ;
PROC LIFETEST data=ds_input plots=(s) noprint;
TIME time_obs*event(0);
STRATA var1/test=(logrank wilcoxon);
SYMBOL1 v=none color=red;
SYMBOL2 v=none color=blue;
AXIS1 label=(angle=90 'Survival function');
RUN;
In the code log there's the following warning message:
WARNING: The specified/default value of VSIZE of 5.0000 inches and VORIGIN of 0.0000 inches exceeds the maximum for the PNG printer. VSIZE is changed to 3.4167 inches.
I see the Kaplan Meier curve in the output but not in the rtf file.
Could anyone help me?
Thanks in advance
Thanks to the SAS support I've found the solution. The code works adding:
goptions device=ZPNG
Bye
Did your first two lines get cut off?
You need
options nocenter nodate number ....; Missing the options keyword
and
ODS RTF File= '...' ; Mising the ODS keyword?
Also, since you're doing ODS you need ODS GRAPHICS ON; to be above your code somewhere as well.
..Yes, sorry I didn't copy option nocenter... and ods rtf..
I think the code I run it's correct (ODS Graphics on is not required since the NOPRINT option is specified), but I can't understand the WARNING message..
Thanks to the SAS support I've found the solution. The code works adding:
goptions device=ZPNG
Bye
Hello there,
I get the same warning: "WARNING: The specified/default value of VSIZE of 8.0000 inches and VORIGIN of 0.0000 inches exceeds themaximum for the PNG printer. VSIZE is changed to 6.638 inches.". But I use GPLOT to do create the graph in HTML file.
and I use SAS 9.4. The ZPNG is disabled here. Can you please suggest me any other solution. It will be great if you could please explain why this warning comes up. Thank you in advance
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.