<?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 to convert time variable in days into 12 Months for a Kaplan-Meier Plot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685224#M207792</link>
    <description>&lt;P&gt;Simply associate the format MONTH3. with your time (days) variable.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Sep 2020 21:12:47 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-09-19T21:12:47Z</dc:date>
    <item>
      <title>How to convert time variable in days into 12 Months for a Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685218#M207788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like to make a Kaplan-Meier curve using Proc lifetest.&lt;/P&gt;
&lt;P&gt;I have a time variable, which was calculated from the interval between two dates.&amp;nbsp;Currently, the unit is in days. How do I covert the the days iinto months so that I can plot the graph with 1-12 months on the X-axis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 19:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685218#M207788</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2020-09-19T19:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time variable in days into 12 Months for a Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685222#M207790</link>
      <description>&lt;P&gt;Suppose you know the initial date or maybe is part of the data you can calculate the 12&lt;/P&gt;
&lt;P&gt;dates by next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* date1 is the initial date */

do m = 1 to 12;
   date = intnx('month',date1,m);
   putlog m= date= date9.;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Having a sample of your data and posting the wanted output, it will enable to give you more&lt;/P&gt;
&lt;P&gt;precise code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 20:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685222#M207790</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-19T20:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert time variable in days into 12 Months for a Kaplan-Meier Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685224#M207792</link>
      <description>&lt;P&gt;Simply associate the format MONTH3. with your time (days) variable.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 21:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-time-variable-in-days-into-12-Months-for-a-Kaplan/m-p/685224#M207792</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-09-19T21:12:47Z</dc:date>
    </item>
  </channel>
</rss>

