<?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: Confidence intervals for survival probability estimates with proc phreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883991#M43778</link>
    <description>&lt;P&gt;If I leave the repeated values of effect estimates, does this changes the survival/failure curve?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 17:26:37 GMT</pubDate>
    <dc:creator>Haemoglobin17</dc:creator>
    <dc:date>2023-07-07T17:26:37Z</dc:date>
    <item>
      <title>Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883958#M43772</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have been conducting a cohort study and I would like to have the survival probability estimates with confidence intervals in a dataset to export in order to create a&amp;nbsp; failure curve with R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the following proc phreg code I output a dataset with the value of survival probability, but can't do the same with confidence intervals. Can you help me please. I didn't find a specific solution on the internet.. Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc phreg data=Dataset;&lt;BR /&gt;class group (ref="0");&lt;BR /&gt;model followup*event(0)=&lt;BR /&gt;/ ties=efron rl;&lt;BR /&gt;weight sw/ normalize;&lt;BR /&gt;strata group;&lt;BR /&gt;output out=Dataset_Surv=s;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 14:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883958#M43772</guid>
      <dc:creator>Haemoglobin17</dc:creator>
      <dc:date>2023-07-07T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883964#M43773</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265569"&gt;@Haemoglobin17&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_phreg_syntax03.htm" target="_blank" rel="noopener"&gt;BASELINE statement&lt;/A&gt; instead of the OUTPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;baseline out=want survival=s l=lcl u=ucl;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Dataset WANT will contain the survival probability estimates (variable S) together with the confidence limits (LCL, UCL).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883964#M43773</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-07T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883972#M43774</link>
      <description>&lt;P&gt;It is exactly what I was looking for! I didn't know the baseline statement, thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883972#M43774</guid>
      <dc:creator>Haemoglobin17</dc:creator>
      <dc:date>2023-07-07T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883977#M43776</link>
      <description>&lt;P&gt;I noticed that when I use the statement baseline the total number of observations is 3900, while with output is 4 millions. What's the reason? The log doesn't give me errors or warnings. I tried to re-run the program with output and it comes back to 4 millions. Is there a way to fix this?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 16:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883977#M43776</guid>
      <dc:creator>Haemoglobin17</dc:creator>
      <dc:date>2023-07-07T16:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883989#M43777</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265569"&gt;@Haemoglobin17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I noticed that when I use the statement baseline the total number of observations is 3900, while with output is 4 millions. What's the reason? The log doesn't give me errors or warnings. I tried to re-run the program with output and it comes back to 4 millions. Is there a way to fix this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The output dataset from the BASELINE statement is "condensed" in that it contains each survival probability estimate (variable S) &lt;EM&gt;only once&lt;/EM&gt; (per group). If you have &lt;EM&gt;tied&lt;/EM&gt; event times (i.e. duplicate values of variable FOLLOWUP within a group) or &lt;EM&gt;censored&lt;/EM&gt; observations (EVENT=0), where S doesn't change, the dataset created by the OUTPUT statement will contain the corresponding observations, &lt;EM&gt;all with the same S value&lt;/EM&gt;.&amp;nbsp;This redundancy is avoided in the&amp;nbsp;BASELINE output dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you sort the 4-million-observation output dataset NODUPKEY &lt;FONT face="courier new,courier"&gt;by GROUP S&lt;/FONT&gt;, the resulting dataset should have very close to 3900 observations, the remaining discrepancies, if any, being "trivial" observations with FOLLOWUP=0 &amp;amp; S=1. No non-trivial values of S should be lost (i.e., be unavailable from the BASELINE statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could merge the LCL and UCL values from the BASELINE output dataset to the large output dataset in a DATA step if you need them redundantly "multiplied" as well.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883989#M43777</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-07T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883991#M43778</link>
      <description>&lt;P&gt;If I leave the repeated values of effect estimates, does this changes the survival/failure curve?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883991#M43778</guid>
      <dc:creator>Haemoglobin17</dc:creator>
      <dc:date>2023-07-07T17:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence intervals for survival probability estimates with proc phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883996#M43781</link>
      <description>&lt;P&gt;If the S values for two different FOLLOWUP times (in the same group) are equal, then at least one of the observations should be a censored observation. These points correspond to a constant ("flat") part of the estimated survival curve. Duplicate S values for two or more observations with the same FOLLOWUP time correspond to only one point of the survival curve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To draw the survival curve, you don't need the redundant duplicate S values. (You need the censored times for the markers indicating censored observations, though.) Between the points defined by the event times and&amp;nbsp;the corresponding unique S values the curve is just flat.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 18:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confidence-intervals-for-survival-probability-estimates-with/m-p/883996#M43781</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-07T18:03:39Z</dc:date>
    </item>
  </channel>
</rss>

