<?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: Can follow up time be zero for proc  phreg? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928287#M365226</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382088"&gt;@SeaMoon_168&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your advice. However, I am still not sure if the model will not include any observations with follow up time = 0 ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you see a note like this in the log?&lt;/P&gt;
&lt;PRE&gt;NOTE: &lt;EM&gt;n&lt;/EM&gt; observations were deleted due either to missing or invalid values for the time, censoring, frequency or explanatory variables or to invalid
      operations in generating the values for some of the explanatory variables.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or a difference between the "Number of Observations Read" and the "Number of Observations Used" in the PROC PHREG output (section "Model Information") due to zeros in the follow-up times?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or a difference in the model statistics after shifting the follow-up times as I suggested?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you using the "&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_details12.htm" target="_blank" rel="noopener"&gt;Counting Process Style of Input&lt;/A&gt;"? That is, the second form of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm" target="_blank" rel="noopener"&gt;MODEL statement&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="aa-statementoptional"&gt;&lt;SPAN class=" aa-lparen"&gt;(&lt;/SPAN&gt;t1&lt;SPAN class=" aa-keyword"&gt;,&lt;/SPAN&gt;&amp;nbsp;t2&lt;SPAN class=" aa-rparen"&gt;)&lt;/SPAN&gt;&amp;lt;&lt;SPAN class=" aa-star"&gt;*&lt;/SPAN&gt;censor&lt;SPAN class=" aa-lparen"&gt;(&lt;/SPAN&gt;list&lt;SPAN class=" aa-rparen"&gt;)&lt;/SPAN&gt;&amp;gt;&amp;nbsp;&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;&amp;nbsp;effects &amp;lt;/ options&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the latter case, yes, observations with &lt;EM&gt;t1&lt;/EM&gt;=&lt;EM&gt;t2&lt;/EM&gt;=0 would be excluded because PROC PHREG uses&amp;nbsp;&lt;EM&gt;semiclosed&lt;/EM&gt; time intervals (&lt;EM&gt;t1&lt;/EM&gt;, &lt;EM&gt;t2&lt;/EM&gt;] and (0, 0] equals the empty set.&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 14:55:15 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2024-05-14T14:55:15Z</dc:date>
    <item>
      <title>Can follow up time be zero for proc  phreg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928229#M365204</link>
      <description>&lt;P&gt;I am not sure if proc phreg would count any observations with follow-up time = 0. Shall I change the follow-up time = end date - start date + 1 (&lt;FONT face="arial black,avant garde"&gt;Not&lt;/FONT&gt; follow-up time= end date - start date) so that even the start and end date are the same, the follow up time is 1 instead of 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 03:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928229#M365204</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2024-05-14T03:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can follow up time be zero for proc  phreg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928267#M365216</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;I assume that you will use the "follow-up time" variable as the "&lt;EM&gt;response&lt;/EM&gt;" variable in a MODEL statement of the first form (see &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;),&amp;nbsp;i.e.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="aa-statementoptional"&gt;response &amp;lt;&lt;SPAN class=" aa-star"&gt;*&lt;/SPAN&gt;censor&amp;nbsp;&lt;SPAN class=" aa-lparen"&gt;(&lt;/SPAN&gt;list&lt;SPAN class=" aa-rparen"&gt;)&lt;/SPAN&gt;&amp;gt;&amp;nbsp;&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;&amp;nbsp;effects &amp;lt;/ options&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In this case only negative or missing&amp;nbsp;&lt;FONT face="courier new,courier"&gt;response&lt;/FONT&gt; values would be excluded from the analysis, whereas &lt;FONT face="courier new,courier"&gt;response=0&lt;/FONT&gt; is no problem. Shifting all&amp;nbsp;&lt;FONT face="courier new,courier"&gt;response&lt;/FONT&gt; values in the analysis dataset by a constant positive amount (e.g. &lt;FONT face="courier new,courier"&gt;response=response+100;&lt;/FONT&gt; in a DATA step) should leave all statistics in the PROC PHREG output unchanged and thus confirm that any zeros (before the shift) had no special bearing on the results.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 11:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928267#M365216</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-05-14T11:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can follow up time be zero for proc  phreg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928284#M365225</link>
      <description>&lt;P&gt;Thank you for your advice. However, I am still not sure if the model will not include any observations with follow up time = 0 ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 13:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928284#M365225</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2024-05-14T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can follow up time be zero for proc  phreg?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928287#M365226</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382088"&gt;@SeaMoon_168&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your advice. However, I am still not sure if the model will not include any observations with follow up time = 0 ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you see a note like this in the log?&lt;/P&gt;
&lt;PRE&gt;NOTE: &lt;EM&gt;n&lt;/EM&gt; observations were deleted due either to missing or invalid values for the time, censoring, frequency or explanatory variables or to invalid
      operations in generating the values for some of the explanatory variables.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or a difference between the "Number of Observations Read" and the "Number of Observations Used" in the PROC PHREG output (section "Model Information") due to zeros in the follow-up times?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or a difference in the model statistics after shifting the follow-up times as I suggested?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you using the "&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_details12.htm" target="_blank" rel="noopener"&gt;Counting Process Style of Input&lt;/A&gt;"? That is, the second form of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax17.htm" target="_blank" rel="noopener"&gt;MODEL statement&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="aa-statementoptional"&gt;&lt;SPAN class=" aa-lparen"&gt;(&lt;/SPAN&gt;t1&lt;SPAN class=" aa-keyword"&gt;,&lt;/SPAN&gt;&amp;nbsp;t2&lt;SPAN class=" aa-rparen"&gt;)&lt;/SPAN&gt;&amp;lt;&lt;SPAN class=" aa-star"&gt;*&lt;/SPAN&gt;censor&lt;SPAN class=" aa-lparen"&gt;(&lt;/SPAN&gt;list&lt;SPAN class=" aa-rparen"&gt;)&lt;/SPAN&gt;&amp;gt;&amp;nbsp;&lt;SPAN class=" aa-keyword"&gt;=&lt;/SPAN&gt;&amp;nbsp;effects &amp;lt;/ options&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the latter case, yes, observations with &lt;EM&gt;t1&lt;/EM&gt;=&lt;EM&gt;t2&lt;/EM&gt;=0 would be excluded because PROC PHREG uses&amp;nbsp;&lt;EM&gt;semiclosed&lt;/EM&gt; time intervals (&lt;EM&gt;t1&lt;/EM&gt;, &lt;EM&gt;t2&lt;/EM&gt;] and (0, 0] equals the empty set.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 14:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-follow-up-time-be-zero-for-proc-phreg/m-p/928287#M365226</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-05-14T14:55:15Z</dc:date>
    </item>
  </channel>
</rss>

