<?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 I get stratum-specific estimates by using strata statement in proc phreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856651#M42360</link>
    <description>You do not get stratum specific estimates using the STRATA statement in PROC PHREG.  PHREG multiplies the partial likelihoods from each strata and then optimizes (determines the coefficients) from the resulting product.  It sounds like maybe you want to use a BY statement instead to get estimates specific to a particular group or groups.&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Feb 2023 14:01:05 GMT</pubDate>
    <dc:creator>OsoGris</dc:creator>
    <dc:date>2023-02-01T14:01:05Z</dc:date>
    <item>
      <title>Can I get stratum-specific estimates by using strata statement in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856485#M42359</link>
      <description>&lt;P&gt;Hi! I am doing stratified cox proportional hazard regression analyses. I used by statement with proc sort stated ahead.&lt;/P&gt;&lt;P&gt;My colleague told me to use strata statement. And I tried but I did not get stratum-specific results. Instead, I only got one HR (assuming there were 3 strata). I wondered how to do this with strata statement. Or, I should stick with the by statement with proc sort.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc phreg data=mydata namelen=32;
class A(ref="1") B(ref="0") C(ref="aa");
model personyrs*Y(0)=X
					 A B C/rl;      
strata D;
hazardratio X;
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856485#M42359</guid>
      <dc:creator>Christina96</dc:creator>
      <dc:date>2023-01-31T15:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get stratum-specific estimates by using strata statement in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856651#M42360</link>
      <description>You do not get stratum specific estimates using the STRATA statement in PROC PHREG.  PHREG multiplies the partial likelihoods from each strata and then optimizes (determines the coefficients) from the resulting product.  It sounds like maybe you want to use a BY statement instead to get estimates specific to a particular group or groups.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856651#M42360</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2023-02-01T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get stratum-specific estimates by using strata statement in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856672#M42361</link>
      <description>&lt;P&gt;Thank you very much! Others also suggested that WHERE statement would work. I wondered if there's any difference. Based on my understanding, I can get three stratum-specific estimates by running PHREG once. But for WHERE, I need to run it 3 times if I have 3 strata. Please correct me if I am wrong. I did not find any detail explanation about WHERE statement under PHREG in SAS help center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856672#M42361</guid>
      <dc:creator>Christina96</dc:creator>
      <dc:date>2023-02-01T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get stratum-specific estimates by using strata statement in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856681#M42363</link>
      <description>I don't think you want a WHERE statement which would mean you would have to run PHREG 3 times to get 3 sets of estimates.  Whereas a BY statement can handle this with one run of PHREG.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856681#M42363</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2023-02-01T16:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get stratum-specific estimates by using strata statement in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856701#M42370</link>
      <description>&lt;P&gt;Thank you very much! I also think BY would be the best fit but I was not sure about it. And, thanks for the explanation on the STRATA statement in PHREG.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 18:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-stratum-specific-estimates-by-using-strata-statement/m-p/856701#M42370</guid>
      <dc:creator>Christina96</dc:creator>
      <dc:date>2023-02-01T18:11:55Z</dc:date>
    </item>
  </channel>
</rss>

