<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PROC LIFETEST only want to have the graph printed  but not the lifetest procedure in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-LIFETEST-only-want-to-have-the-graph-printed-but-not-the/m-p/947155#M370826</link>
    <description>&lt;PRE&gt;&lt;CODE class=""&gt;	ods pdf anchor = "&amp;amp;xtab";
	ods proclabel="Figure &amp;amp;xTabnum";
    
	ods rtf file="" nogtitle nogfootnote;


	ODS graphics on;
	ods exclude all;
	ods select survivalPlot;
	options nodate nonumber;
/***************************************************/
%ProvideSurvivalMacros
%let yOptions = label="Survival Probability"
                labelattrs=(size=10pt weight=bold)
                tickvalueattrs=(size=8pt)
                linearopts=(viewmin=0 viewmax=1
                tickvaluelist=(0 .2 .4 .6 .8 1.0));
%let xOptions = label="Weeks"
offsetmin=.05
labelattrs=(size=10pt weight=bold)
tickvalueattrs=(size=8pt)
linearopts=(viewmax=MAXTIME tickvaluelist=XTICKVALS
tickvaluefitpolicy=XTICKVALFITPOL);

%let GraphOpts = DesignHeight=DefaultDesignWidth;
%SurvivalSummaryTable

%macro StmtsTop;
referenceline y=0.5;
%mend;
%CompileSurvivalTemplates

%let LegendOpts = ;&lt;BR /&gt;
proc lifetest data = data_surv outsurv=surv_out plots=survival(atrisk
(atrisktickonly outside maxlen=13 outside)=0 2 8 10);
   time Time*censor(1);
   strata Treatment/order=internal;
   survival conftype=loglog;
run;

ods exclude none;
ods rtf close;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I just want to have the survival plot printed in my report how to remove all the lifetest procedure stuff? Anything wrong in my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, another question is that I have only one treatment, why I don't the treatment legend showing up for just that one treatment.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 15:25:44 GMT</pubDate>
    <dc:creator>Yuna11</dc:creator>
    <dc:date>2024-10-11T15:25:44Z</dc:date>
    <item>
      <title>PROC LIFETEST only want to have the graph printed  but not the lifetest procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LIFETEST-only-want-to-have-the-graph-printed-but-not-the/m-p/947155#M370826</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;	ods pdf anchor = "&amp;amp;xtab";
	ods proclabel="Figure &amp;amp;xTabnum";
    
	ods rtf file="" nogtitle nogfootnote;


	ODS graphics on;
	ods exclude all;
	ods select survivalPlot;
	options nodate nonumber;
/***************************************************/
%ProvideSurvivalMacros
%let yOptions = label="Survival Probability"
                labelattrs=(size=10pt weight=bold)
                tickvalueattrs=(size=8pt)
                linearopts=(viewmin=0 viewmax=1
                tickvaluelist=(0 .2 .4 .6 .8 1.0));
%let xOptions = label="Weeks"
offsetmin=.05
labelattrs=(size=10pt weight=bold)
tickvalueattrs=(size=8pt)
linearopts=(viewmax=MAXTIME tickvaluelist=XTICKVALS
tickvaluefitpolicy=XTICKVALFITPOL);

%let GraphOpts = DesignHeight=DefaultDesignWidth;
%SurvivalSummaryTable

%macro StmtsTop;
referenceline y=0.5;
%mend;
%CompileSurvivalTemplates

%let LegendOpts = ;&lt;BR /&gt;
proc lifetest data = data_surv outsurv=surv_out plots=survival(atrisk
(atrisktickonly outside maxlen=13 outside)=0 2 8 10);
   time Time*censor(1);
   strata Treatment/order=internal;
   survival conftype=loglog;
run;

ods exclude none;
ods rtf close;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I just want to have the survival plot printed in my report how to remove all the lifetest procedure stuff? Anything wrong in my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, another question is that I have only one treatment, why I don't the treatment legend showing up for just that one treatment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LIFETEST-only-want-to-have-the-graph-printed-but-not-the/m-p/947155#M370826</guid>
      <dc:creator>Yuna11</dc:creator>
      <dc:date>2024-10-11T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LIFETEST only want to have the graph printed  but not the lifetest procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LIFETEST-only-want-to-have-the-graph-printed-but-not-the/m-p/947166#M370828</link>
      <description>&lt;P&gt;Add the following ODS statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods trace on;&amp;nbsp; &amp;nbsp;/* Writes the names of the output tables and graphs to the Log */&lt;BR /&gt;ods select SurvivalPlot NegLogSurvivalPlot;&amp;nbsp; &amp;nbsp; /* Chooses the specific output you want */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 16:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LIFETEST-only-want-to-have-the-graph-printed-but-not-the/m-p/947166#M370828</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2024-10-11T16:30:09Z</dc:date>
    </item>
  </channel>
</rss>

