Programming the statistical procedures from SAS

PROC LIFETEST - WARNING

Accepted Solution Solved
Reply
Contributor L_L
Contributor
Posts: 56
Accepted Solution

PROC LIFETEST - WARNING

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
Solution
‎08-17-2012 09:07 AM
Contributor L_L
Contributor
Posts: 56

Re: PROC LIFETEST - WARNING

Thanks to the SAS support I've found the solution. The code works adding:

goptions device=ZPNG

Bye

View solution in original post


All Replies
Grand Advisor
Posts: 16,875

Re: PROC LIFETEST - WARNING

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.

Contributor L_L
Contributor
Posts: 56

Re: PROC LIFETEST - WARNING

..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..

Solution
‎08-17-2012 09:07 AM
Contributor L_L
Contributor
Posts: 56

Re: PROC LIFETEST - WARNING

Thanks to the SAS support I've found the solution. The code works adding:

goptions device=ZPNG

Bye

Contributor
Posts: 36

Re: PROC LIFETEST - WARNING [I use the gplot not lifetest]

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 380 views
  • 0 likes
  • 3 in conversation