<?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 does SAS understand time in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745221#M36295</link>
    <description>great - thanks for your help</description>
    <pubDate>Wed, 02 Jun 2021 15:37:03 GMT</pubDate>
    <dc:creator>Lorraine22</dc:creator>
    <dc:date>2021-06-02T15:37:03Z</dc:date>
    <item>
      <title>how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745113#M36278</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am comparing proportion of people who attend a clinic between two different time periods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the two time periods are different in length – one is 3-months; the other is 9 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask how do I tell SAS the time (or how does SAS understand what my time is) - in my code I have entered 3 for 3 months and 9 for 9 months - is this correct - would appreciate any advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Non_urg(keep=time case log_t);&lt;/P&gt;&lt;P&gt;infile datalines;&lt;/P&gt;&lt;P&gt;input time case pop;&lt;/P&gt;&lt;P&gt;log_t=log(time);&lt;/P&gt;&lt;P&gt;output Non_urg;&lt;BR /&gt;datalines;&lt;/P&gt;&lt;P&gt;9 144 1574&lt;BR /&gt;3 76 916&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc genmod data=Non_urg;&lt;/P&gt;&lt;P&gt;model case=time/ dist=poisson link=log offset=log_t;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 10:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745113#M36278</guid>
      <dc:creator>Lorraine22</dc:creator>
      <dc:date>2021-06-02T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745121#M36279</link>
      <description>&lt;P&gt;SAS understands that 3 is different than 9, and that 9 is six greater than 3, and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing you have done here indicates to SAS that these are time intervals or times, nor is that necessary to use PROC GENMOD properly.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 10:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745121#M36279</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-02T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745150#M36280</link>
      <description>&lt;P&gt;thanks for replying to my message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my understanding is that I don't need the offset if the two time periods were the same length; but I need to use it when time periods are different lengths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so how do I indicate to SAS that they are time periods if my code is not correct. can you explain more how I use the proc genmod properly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;appreciate your time - its been a while since I've used SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 12:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745150#M36280</guid>
      <dc:creator>Lorraine22</dc:creator>
      <dc:date>2021-06-02T12:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745154#M36281</link>
      <description>&lt;P&gt;As far as I can see, your code is correct.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 12:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745154#M36281</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-02T12:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745155#M36282</link>
      <description>can you explain your reply from earlier "Nothing you have done here indicates to SAS that these are time intervals or times". &lt;BR /&gt;&lt;BR /&gt;I'm trying to understand how to indicate to SAS that they are time intervals. &lt;BR /&gt;&lt;BR /&gt;is it by the inclusion or exclusion of the offset?&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2021 12:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745155#M36282</guid>
      <dc:creator>Lorraine22</dc:creator>
      <dc:date>2021-06-02T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745170#M36283</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140644"&gt;@Lorraine22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;can you explain your reply from earlier "Nothing you have done here indicates to SAS that these are time intervals or times". &lt;BR /&gt;&lt;BR /&gt;I'm trying to understand how to indicate to SAS that they are time intervals. &lt;BR /&gt;&lt;BR /&gt;is it by the inclusion or exclusion of the offset?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here is an example of Poisson regression in SAS:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_gettingstarted01.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_gettingstarted01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me your code is correct, and that you don't have to do anything else. There is no such thing as an "interval" in SAS, you don't have to specify that something is an "interval" (and in fact, you can't indicate that anyway).&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 13:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745170#M36283</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-02T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: how does SAS understand time</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745221#M36295</link>
      <description>great - thanks for your help</description>
      <pubDate>Wed, 02 Jun 2021 15:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-does-SAS-understand-time/m-p/745221#M36295</guid>
      <dc:creator>Lorraine22</dc:creator>
      <dc:date>2021-06-02T15:37:03Z</dc:date>
    </item>
  </channel>
</rss>

