<?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: How can I display 4 groups of inset table in Kaplan-Meier Plot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523350#M4597</link>
    <description>&lt;P&gt;Are you saying you only get 3 survival curves?&amp;nbsp; If so, then I doubt there actually is 4 categories found in your data.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Dec 2018 06:15:33 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-12-24T06:15:33Z</dc:date>
    <item>
      <title>How can I display 4 groups of inset table in Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523341#M4593</link>
      <description>&lt;P&gt;I tried to draw Kaplan-Meier curve using proc lifetest and ODS graphics.&lt;/P&gt;&lt;P&gt;Using % let InsetOpts and StmtsBottom in the Macro, I want to display inset table including No. and events.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 groups but only first 3 groups are displayed on Survival Curve.&lt;/P&gt;&lt;P&gt;How can I display 4 groups&amp;nbsp;of No. and events?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/141;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile "http:&amp;amp;url/templft.html" device=url;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file 'macros.tmp';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; retain pre &lt;STRONG&gt;0&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = &lt;STRONG&gt;0&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if pre then put _infile_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = &lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;%inc 'macros.tmp' / nosource;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;ProvideSurvivalMacros&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%let InsetOpts = autoalign=(BottomLeft)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; border=true BackgroundColor=GraphWalls:Color Opaque=true;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;StmtsBottom&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;dynamic %do i = &lt;STRONG&gt;1&lt;/STRONG&gt; %to &lt;STRONG&gt;3&lt;/STRONG&gt;; StrVal&amp;amp;i NObs&amp;amp;i NEvent&amp;amp;i %end;;&lt;/P&gt;&lt;P&gt;layout gridded / columns=&lt;STRONG&gt;3&lt;/STRONG&gt; border=true autoalign=(BottomRight);&lt;/P&gt;&lt;P&gt;entry ""; entry "No."; entry "Events";&lt;/P&gt;&lt;P&gt;%do i = &lt;STRONG&gt;1&lt;/STRONG&gt; %to &lt;STRONG&gt;3&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;%let t = / textattrs=GraphData&amp;amp;i;&lt;/P&gt;&lt;P&gt;entry halign=right Strval&amp;amp;i &amp;amp;t; entry NObs&amp;amp;i &amp;amp;t; entry NEvent&amp;amp;i &amp;amp;t;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;endlayout;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;; &amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;CompileSurvivalTemplates&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;format&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;value CATEGORY&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt; = "A"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt; = "B"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt; = "C"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt; = "D";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS Graphics ON;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;LIFETEST&lt;/STRONG&gt; data= File_Name&lt;/P&gt;&lt;P&gt;&amp;nbsp; plots=survival (atrisk test) notable;&lt;/P&gt;&lt;P&gt;TIME FU_time * events (&lt;STRONG&gt;0&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;STRATA category;&lt;/P&gt;&lt;P&gt;format category category.;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ODS Graphics OFF;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Dec 2018 22:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523341#M4593</guid>
      <dc:creator>psh1025</dc:creator>
      <dc:date>2018-12-23T22:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display 4 groups of inset table in Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523350#M4597</link>
      <description>&lt;P&gt;Are you saying you only get 3 survival curves?&amp;nbsp; If so, then I doubt there actually is 4 categories found in your data.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 06:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523350#M4597</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-12-24T06:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display 4 groups of inset table in Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523357#M4598</link>
      <description>Oh, I am sorry for not being clear.&lt;BR /&gt;I mean 4 survival curves are drawn but in an inset table, No. of cases and&lt;BR /&gt;events of only first 3 variables are displayed.&lt;BR /&gt;No. of cases and events of the last 'D' variable is not shown in an inset&lt;BR /&gt;table.&lt;BR /&gt;How can I display No. of cases and events of all 4 variables in an inset&lt;BR /&gt;table?&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Dec 2018 06:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-display-4-groups-of-inset-table-in-Kaplan-Meier-Plot/m-p/523357#M4598</guid>
      <dc:creator>psh1025</dc:creator>
      <dc:date>2018-12-24T06:55:47Z</dc:date>
    </item>
  </channel>
</rss>

