<?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 PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG/m-p/282064#M14864</link>
    <description>&lt;P&gt;Working on a Cox Proportional Hazard model and have a question about dummy categories and censoring. Much like regular regressions, do you need to drop one of the dummy categories?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of censoring, I am analyzing the effect on mortality rates. So my time dimension will be duration between surey and date of death (in years). I called this term 'survival'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The right censoring variable is death status, alive or dead. Where dead = 1 and alive = 0. This term was labeled 'mortality'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the equation I have come up with is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = test;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model survival*mortality(0) = sex age_cat_1 age_cat_2 smoking_status ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;/ rl ties=efron ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts as to whether the censoring looks right and what to do about dummy variables would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2016 23:32:53 GMT</pubDate>
    <dc:creator>buder</dc:creator>
    <dc:date>2016-07-04T23:32:53Z</dc:date>
    <item>
      <title>PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG/m-p/282064#M14864</link>
      <description>&lt;P&gt;Working on a Cox Proportional Hazard model and have a question about dummy categories and censoring. Much like regular regressions, do you need to drop one of the dummy categories?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of censoring, I am analyzing the effect on mortality rates. So my time dimension will be duration between surey and date of death (in years). I called this term 'survival'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The right censoring variable is death status, alive or dead. Where dead = 1 and alive = 0. This term was labeled 'mortality'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the equation I have come up with is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = test;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model survival*mortality(0) = sex age_cat_1 age_cat_2 smoking_status ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;/ rl ties=efron ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts as to whether the censoring looks right and what to do about dummy variables would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 23:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG/m-p/282064#M14864</guid>
      <dc:creator>buder</dc:creator>
      <dc:date>2016-07-04T23:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG/m-p/282066#M14865</link>
      <description>&lt;P&gt;Proc Phreg supports the class statement so I would include your categorical variable &amp;nbsp;and allow SAS to create the dummy variables. Make sure to set the parameterization method, usually param=ref.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, isn't death the event? So then you look at mortality(1), but instead of looking at failure rates you look at survival rates?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure I'm interpreting your problem correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation has an example on modelling with categorical variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_examples03.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_examples03.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 00:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PHREG/m-p/282066#M14865</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-05T00:19:41Z</dc:date>
    </item>
  </channel>
</rss>

