<?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 Class and order in proc lifereg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/111107#M5871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a beginner in SAS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to fit a parametric regression model. But while running this code, I am getting largest values in the categorical variables are being omitted. How do I set the lowest number as the reference category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is it possible to get the hazard ratios from this procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc lifereg data = v3&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class&amp;nbsp; sex&amp;nbsp; costct&amp;nbsp; cpm&amp;nbsp; mt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model deadtime* dead(0) =&amp;nbsp; age sex ac6&amp;nbsp; costct mt cpm /dist=weibull&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 01:35:48 GMT</pubDate>
    <dc:creator>Thomas2012</dc:creator>
    <dc:date>2012-07-19T01:35:48Z</dc:date>
    <item>
      <title>Class and order in proc lifereg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/111107#M5871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a beginner in SAS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to fit a parametric regression model. But while running this code, I am getting largest values in the categorical variables are being omitted. How do I set the lowest number as the reference category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is it possible to get the hazard ratios from this procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc lifereg data = v3&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class&amp;nbsp; sex&amp;nbsp; costct&amp;nbsp; cpm&amp;nbsp; mt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model deadtime* dead(0) =&amp;nbsp; age sex ac6&amp;nbsp; costct mt cpm /dist=weibull&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 01:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/111107#M5871</guid>
      <dc:creator>Thomas2012</dc:creator>
      <dc:date>2012-07-19T01:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Class and order in proc lifereg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/111108#M5872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and welcome to SAS (and the discussion forums),&lt;/P&gt;&lt;P&gt;The CLASS statement for the LIFEREG procedure does not use a reference parameterization, it uses what is called a GLM (or "singular") parameterization. Parameterization of classification variables are explained here: &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a0000003327.htm" title="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a0000003327.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_introcom_a0000003327.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some SAS procedures do support reference prameterizations (they are listed in the previous link).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the parameterization is fixed, you can change the order in which the class levels are sorted by using the ORDER= option on the PROC statement: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_lifereg_sect006.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_lifereg_sect006.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One important thing to remember: The SAS default is to determine levels by the FORMATTED values of the variables.&amp;nbsp; That means that you can play games with PROC FORMAT to get all kind of versitility in how results are displayed.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 11:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/111108#M5872</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-07-19T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Class and order in proc lifereg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/391701#M20443</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am familiar with how to manipulate formats in order to get the desired reference level. However, I am having another issue. I have a categorical variable with 16 levels and every time I run my model (lifereg), regardless of how the values are formatted, it outputs 4 of the levels as reference groups. I only want one level to be a reference group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 00:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Class-and-order-in-proc-lifereg/m-p/391701#M20443</guid>
      <dc:creator>saghaee</dc:creator>
      <dc:date>2017-08-30T00:04:09Z</dc:date>
    </item>
  </channel>
</rss>

