- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to the SAS support I've found the solution. The code works adding:
goptions device=ZPNG
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
..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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to the SAS support I've found the solution. The code works adding:
goptions device=ZPNG
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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