<?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: Help!how to calculate hazard ratio in Cox model with frailty in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1126#M321</link>
    <description>Dear Phil:&lt;BR /&gt;
&lt;BR /&gt;
This is the code i found from stata journal. There are 2 part:&lt;BR /&gt;
(1)-code&lt;BR /&gt;
use kidney, clear&lt;BR /&gt;
. streg age gender, dist(weibull) frailty(gamma) shared(patient) time nohr nolog&lt;BR /&gt;
(2)-code&lt;BR /&gt;
use kidney, clear&lt;BR /&gt;
. stset time1 fail1&lt;BR /&gt;
(output omitted )&lt;BR /&gt;
. streg age gender, dist(weibull) frailty(gamma) shared(patient) nolog&lt;BR /&gt;
&lt;BR /&gt;
All of the questions are based on Cox proportion hazard model with shared frailty effect, Survival Analysis.&lt;BR /&gt;
And i want to calculate the "hazard ratio" and "the coef" and revelent statistics. &lt;BR /&gt;
&lt;BR /&gt;
Could you help me to convert it? &lt;BR /&gt;
Sorry about my expression wasn't so clearly.&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Chin</description>
    <pubDate>Tue, 25 Jul 2006 15:37:32 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-07-25T15:37:32Z</dc:date>
    <item>
      <title>Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1124#M319</link>
      <description>Dear all:&lt;BR /&gt;
&lt;BR /&gt;
Now I'm doing the calculation of Hazard Ratio and Slope estimator of Schoenfeld residuals in Cox PH model with frailty effect. I knew Stata could run all of this easily. But my manager just allowed me to use SAS. Does anyone could help? Thanks for everyone.&lt;BR /&gt;
&lt;BR /&gt;
Chin</description>
      <pubDate>Tue, 25 Jul 2006 14:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1124#M319</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-25T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1125#M320</link>
      <description>Chin,&lt;BR /&gt;
&lt;BR /&gt;
I'm a SAS programmer, not a statistician, and I do not understand the question.  Please could you paste in the STATA code you used, and we may be able to see what it is you want to do and then convert it to SAS?&lt;BR /&gt;
&lt;BR /&gt;
.......Phil</description>
      <pubDate>Tue, 25 Jul 2006 14:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1125#M320</guid>
      <dc:creator>prholland</dc:creator>
      <dc:date>2006-07-25T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1126#M321</link>
      <description>Dear Phil:&lt;BR /&gt;
&lt;BR /&gt;
This is the code i found from stata journal. There are 2 part:&lt;BR /&gt;
(1)-code&lt;BR /&gt;
use kidney, clear&lt;BR /&gt;
. streg age gender, dist(weibull) frailty(gamma) shared(patient) time nohr nolog&lt;BR /&gt;
(2)-code&lt;BR /&gt;
use kidney, clear&lt;BR /&gt;
. stset time1 fail1&lt;BR /&gt;
(output omitted )&lt;BR /&gt;
. streg age gender, dist(weibull) frailty(gamma) shared(patient) nolog&lt;BR /&gt;
&lt;BR /&gt;
All of the questions are based on Cox proportion hazard model with shared frailty effect, Survival Analysis.&lt;BR /&gt;
And i want to calculate the "hazard ratio" and "the coef" and revelent statistics. &lt;BR /&gt;
&lt;BR /&gt;
Could you help me to convert it? &lt;BR /&gt;
Sorry about my expression wasn't so clearly.&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Chin</description>
      <pubDate>Tue, 25 Jul 2006 15:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1126#M321</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-25T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1127#M322</link>
      <description>Chin,&lt;BR /&gt;
&lt;BR /&gt;
I can't say that I've worked out how to solve your problem in SAS, but I've found references to some of your STATA code features in the documentation for PROC LIFEREG:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/statug.hlp/lifereg_index.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/statug.hlp/lifereg_index.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
However, there was no mention of Frailty.  Also PROC LIFETEST is supported in Enterprise Guide, but PROC LIFEREG is not.  The omission of PROC LIFEREG support in EG is understandable though, as the documentation made my head hurt!  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
.......Phil</description>
      <pubDate>Wed, 26 Jul 2006 10:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1127#M322</guid>
      <dc:creator>prholland</dc:creator>
      <dc:date>2006-07-26T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1128#M323</link>
      <description>I am also interested in hazard estimates with frailty!  I am working with economists who use STATA.  Unfortunately, STATA chokes when the data set is large.  Has anyone converted the STATA code to SAS?  I know there is a COBOL2SAS macro.  Is there a STATA2SAS macro?</description>
      <pubDate>Wed, 26 Jul 2006 18:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1128#M323</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2006-07-26T18:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help!how to calculate hazard ratio in Cox model with frailty</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1129#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not at all familiar with Stata, but I do know how to calculate a hazard ratio using a frailty model in SAS:&lt;/P&gt;&lt;P&gt;'proc phreg' is for survival analysis and the 'random' statement introduces the frailty term (the ID or participant name&lt;/P&gt;&lt;P&gt;the option 'RL' requests the confidence intervals for the hazard ratio&lt;/P&gt;&lt;P&gt;with 'groupe' the treatment variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code will be:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;proc phreg data=table;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;&amp;nbsp;&amp;nbsp; class&amp;nbsp; groupe id;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;&amp;nbsp;&amp;nbsp; model time*Status(0)=groupe /RL ;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;random id;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG style="color: #376092; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In case you have other covariates (age gender...), the code will be (you want the adjusted hazard ratio for the variable 'groupe'):&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; background-color: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;proc phreg data=table;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;&amp;nbsp;&amp;nbsp; class&amp;nbsp; groupe id gender;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;&amp;nbsp;&amp;nbsp; model time*Status(0)=groupe gender age/RL ;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #376092;"&gt;random id;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG style="color: #376092; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;hazardratio groupe;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;STRONG style="color: #376092; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-how-to-calculate-hazard-ratio-in-Cox-model-with-frailty/m-p/1129#M324</guid>
      <dc:creator>Fabie10</dc:creator>
      <dc:date>2014-02-04T17:21:01Z</dc:date>
    </item>
  </channel>
</rss>

