<?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 How to customize at-risk table using Proc Lifetest in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810735#M39926</link>
    <description>&lt;P&gt;I want to change the font and size of the at-risk table using Proc Lifetest (shown below). I can find article about how to adjust the font and size for labels and titles. I want to change the table font to Times New Roman and font to 12. Many thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Find the figure online" style="width: 666px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70992iEEB415C0B4CBEF3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="images_kmartick.png" alt="Find the figure online" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Find the figure online&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 19:42:38 GMT</pubDate>
    <dc:creator>SeaMoon_168</dc:creator>
    <dc:date>2022-04-29T19:42:38Z</dc:date>
    <item>
      <title>How to customize at-risk table using Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810735#M39926</link>
      <description>&lt;P&gt;I want to change the font and size of the at-risk table using Proc Lifetest (shown below). I can find article about how to adjust the font and size for labels and titles. I want to change the table font to Times New Roman and font to 12. Many thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Find the figure online" style="width: 666px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70992iEEB415C0B4CBEF3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="images_kmartick.png" alt="Find the figure online" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Find the figure online&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 19:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810735#M39926</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-04-29T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize at-risk table using Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810825#M39927</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382088"&gt;@SeaMoon_168&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you already using the macros provided by SAS that facilitate the customization of the Kaplan-Meier plot? If not, just copy and submit the code from &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;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then changing the font family and size is as easy as setting a macro variable (here: &lt;FONT face="courier new,courier"&gt;AtRiskOpts&lt;/FONT&gt;) between two macro calls:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%ProvideSurvivalMacros

&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;%let AtRiskOpts = labelattrs=(family='Times New Roman' size=12pt)
                  valueattrs=(family='Times New Roman' size=12pt);&lt;/STRONG&gt;&lt;/FONT&gt;

%CompileSurvivalTemplates

proc lifetest data=sashelp.BMT
              plots=survival(atrisk(outside maxlen=13));
   time T * Status(0);
   strata Group;
run;&lt;/PRE&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_kaplan_sect015.htm" target="_blank" rel="noopener"&gt;Controlling the Survival Plot by Modifying Graph Templates&lt;/A&gt; for the&amp;nbsp;documentation.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 16:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810825#M39927</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-04-30T16:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize at-risk table using Proc Lifetest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810830#M39928</link>
      <description>&lt;P&gt;Awesome! It works very well. Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 17:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-customize-at-risk-table-using-Proc-Lifetest/m-p/810830#M39928</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2022-04-30T17:42:25Z</dc:date>
    </item>
  </channel>
</rss>

