As you see, this is my PROC LIFETEST sas code, my aim is to get a SurvivalPlot in vector format, which means I want a picture.svg
ods graphics on;
ods select SurvivalPlot;
proc lifetest data=sascomp.adqs method=PL plots=(survival(test atrisk cl) logsurv) alpha=0.05;
time RETIME*STATUS(0);
strata Group;
run;
ods graphics off;
I searched the SAS HELP website and here, but nothing. Please help me, thank you!
Check path c:\temp\z\ ,there should have a file named sgplot1.svg
ods listing gpath='c:\temp\z\' style=htmlblue;
ods graphics /imagefmt=svg ;
proc lifetest data=sashelp.bmt;
time t*status(0);
strata group;
run;
Check path c:\temp\z\ ,there should have a file named sgplot1.svg
ods listing gpath='c:\temp\z\' style=htmlblue;
ods graphics /imagefmt=svg ;
proc lifetest data=sashelp.bmt;
time t*status(0);
strata group;
run;
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.