<?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 Re: Survival in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825227#M40874</link>
    <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graphically i would like to have a red solid line for the "0" group and a blue solid line for the "1" group&amp;nbsp; and a red dotted line for the "2" group and and a blue dotted line for the "3" group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to compute this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 12:55:48 GMT</pubDate>
    <dc:creator>Romain69100</dc:creator>
    <dc:date>2022-07-25T12:55:48Z</dc:date>
    <item>
      <title>Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825220#M40866</link>
      <description>&lt;P&gt;Hi sas users!&lt;/P&gt;&lt;P&gt;I have a question regarding survival analysis.&lt;/P&gt;&lt;P&gt;I am working on the effect of lymphocyte/monocye ratio (which is a binary factor &amp;gt;2 vs &amp;lt;2) on the progression free survival.&lt;/P&gt;&lt;P&gt;I would like to plot this effect within each treatment arm (2 arms) and to use the approprial statistic test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, i have created a categorical,&amp;nbsp; variable "d_groupe" as follow:&lt;/P&gt;&lt;P&gt;0= lmr&amp;lt;2 and treatment arm=1&lt;/P&gt;&lt;P&gt;1=lmr&amp;lt;2 and treatment arm=2&lt;/P&gt;&lt;P&gt;2=lmr&amp;gt;2 and treatment arm=1&lt;/P&gt;&lt;P&gt;3=lmr&amp;gt;2 and treatment arm=2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then i used proc lifetest to generate the graph:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS GRAPHICS ON;&lt;BR /&gt;PROC LIFETEST DATA=data plots=survival(cl test nocensor atrisk(outside));&lt;BR /&gt;TIME D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1);&lt;BR /&gt;STRATA d_groupe;&lt;BR /&gt;RUN;&lt;BR /&gt;ODS GRAPHICS OFF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the correct way to do it and which statistical test is needed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;&lt;P&gt;Romain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825220#M40866</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-07-25T12:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825223#M40867</link>
      <description>&lt;P&gt;you can try wilcoxon or log-rank assuming assumptions are met. these are nonparametric tests.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825223#M40867</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-07-25T12:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825227#M40874</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graphically i would like to have a red solid line for the "0" group and a blue solid line for the "1" group&amp;nbsp; and a red dotted line for the "2" group and and a blue dotted line for the "3" group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to compute this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825227#M40874</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-07-25T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825250#M40875</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422284"&gt;@Romain69100&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graphically i would like to have a red solid line for the "0" group and a blue solid line for the "1" group&amp;nbsp; and a red dotted line for the "2" group and and a blue dotted line for the "3" group?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to compute this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My generic suggestion for any appearance controls is to extract data from the procedure, modify if needed and use a graphing procedure such as Sgplot to create the graphs. Most of the graphs from analysis procedures are in the nature of exploratory and not designed to create presentation or publication ready graphs. I consider requests for specific colors, line types, axis labels, fonts etc. as "presentation" requirements so the suggestion.&lt;/P&gt;
&lt;P&gt;These would be Styleattrs statements as overrides to existing ODS Style defaults or potentially Dattrmap options for Sgplot.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 14:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825250#M40875</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-25T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825262#M40876</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 14:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825262#M40876</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-07-25T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survival</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825272#M40878</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422284"&gt;@Romain69100&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the special case of &lt;EM&gt;Kaplan-Meier plots&lt;/EM&gt; there are ample possibilities for customization thanks to the macros SAS provided in&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_kaplan_toc.htm" target="_blank" rel="noopener"&gt;Customizing the Kaplan-Meier Survival Plot&lt;/A&gt;&amp;nbsp;(direct link to the code:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/ex_code/151/templft.html" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/onlinedoc/stat/ex_code/151/templft.html&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify the colors and line patterns as you want in macro variable &lt;FONT face="courier new,courier"&gt;GraphOpts&lt;/FONT&gt;, as shown in the example below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create sample data for demonstration */

data have;
set VALung; /* from https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_lifetest_examples01.htm */
d_groupe=mod(rank(char(cell,4))+2,4);
run;

/* Specify colors and line patterns */

%ProvideSurvivalMacros /* from https://support.sas.com/documentation/onlinedoc/stat/ex_code/151/templft.html */

%let GraphOpts = attrpriority=none
                 DataContrastColors = (red   blue  red blue)
                 DataLinePatterns   = (solid solid dot dot );

%CompileSurvivalTemplates

/* Apply the attributes to a Kaplan-Meier plot */

ods graphics on;
proc lifetest data=have plots=(s);
time SurvTime*Censor(1);
strata d_groupe;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 15:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Survival/m-p/825272#M40878</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-07-25T15:36:59Z</dc:date>
    </item>
  </channel>
</rss>

