<?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 Identifying which individual observations are events in PROC PHREG to calculate person-time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823435#M325123</link>
    <description>&lt;P&gt;PROC PHREG data=XXX covs(aggregate);&lt;/P&gt;&lt;P&gt;CLASS [all categorical variables]&lt;/P&gt;&lt;P&gt;MODEL (exact age, exact age at hysterectomy)*cancer_event(0)=exposure v1 v2 v3 v4 v5;&lt;/P&gt;&lt;P&gt;ID [observation identifier];&lt;/P&gt;&lt;P&gt;HAZARDRATIO exposure / UNITS=10;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this model, I am trying to calculate person-time. When I run this model, I am able to see the the number of events in the 'Summary of the Number of Event and Censored Values' table, but I am not quite sure about how to identify which observations were considered to be events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that if I was able to identify which observations are events that I would be able to calculate person time with a DATA step to subset the data and create a person-time variable before running PROC MEANS to sum all the observations for person-time. Any ideas about how to best calculate person time based on this model would be greatly appreciate.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 22:28:12 GMT</pubDate>
    <dc:creator>jb915</dc:creator>
    <dc:date>2022-07-14T22:28:12Z</dc:date>
    <item>
      <title>Identifying which individual observations are events in PROC PHREG to calculate person-time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823435#M325123</link>
      <description>&lt;P&gt;PROC PHREG data=XXX covs(aggregate);&lt;/P&gt;&lt;P&gt;CLASS [all categorical variables]&lt;/P&gt;&lt;P&gt;MODEL (exact age, exact age at hysterectomy)*cancer_event(0)=exposure v1 v2 v3 v4 v5;&lt;/P&gt;&lt;P&gt;ID [observation identifier];&lt;/P&gt;&lt;P&gt;HAZARDRATIO exposure / UNITS=10;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this model, I am trying to calculate person-time. When I run this model, I am able to see the the number of events in the 'Summary of the Number of Event and Censored Values' table, but I am not quite sure about how to identify which observations were considered to be events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that if I was able to identify which observations are events that I would be able to calculate person time with a DATA step to subset the data and create a person-time variable before running PROC MEANS to sum all the observations for person-time. Any ideas about how to best calculate person time based on this model would be greatly appreciate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 22:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823435#M325123</guid>
      <dc:creator>jb915</dc:creator>
      <dc:date>2022-07-14T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying which individual observations are events in PROC PHREG to calculate person-time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823440#M325126</link>
      <description>&lt;P&gt;I think that if you add an OUTPUT statement you will see that the number of Cancer_event (censoring variable) values = 1 may match the number of events and 0 the number censored in the output set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At least it is easy to test. Add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output out=work.somedatasetname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 23:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823440#M325126</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-14T23:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying which individual observations are events in PROC PHREG to calculate person-time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823442#M325127</link>
      <description>I'm not able to get the person-time calculations for the events only included in PROC PHREG. There are 403 events used in the PROC PHREG statement but I am getting the person-time calculation for all 404 cases.</description>
      <pubDate>Thu, 14 Jul 2022 23:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823442#M325127</guid>
      <dc:creator>jb915</dc:creator>
      <dc:date>2022-07-14T23:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying which individual observations are events in PROC PHREG to calculate person-time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823443#M325128</link>
      <description>Is there a better way to display which observations were censored vs. which observations were events?</description>
      <pubDate>Fri, 15 Jul 2022 00:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-which-individual-observations-are-events-in-PROC/m-p/823443#M325128</guid>
      <dc:creator>jb915</dc:creator>
      <dc:date>2022-07-15T00:21:53Z</dc:date>
    </item>
  </channel>
</rss>

