- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 11-18-2009 07:40 PM
(2405 views)
'm doing a simple PROC LIFETEST. If I don't do ODS GRAPHICS ON; then I get the K-M survival plot in the regular SAS Graph window. But since it looks better in the graphics window, I tried doing ODS GRAPHICS ON; first. But when I do that and then submit the code, I don't get a survival curve in any window. I don't get an error in the Log window. The Log window looks normal and the output in the Output window looks normal. But I just don't get a survival curve. Any ideas?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
check the ODS options in the LIFETEST documentation. You have to add something to the PROC statement to get the K-M plots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
D'oh, that was so dumb of me. I had forgotten to do ODS HTML; first. I guess if you don't tell if it you want HTML or RTF or whatever then ODS GRAPHICS ON; doesn't do you any good. Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You need something like this in the first two lines:
ods graphics on;
proc lifetest data=A NOTABLE plots=(s(name=surv2));
ods graphics on;
proc lifetest data=A NOTABLE plots=(s(name=surv2));