<?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 How to obtain covariate-adjusted median survival time in PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922181#M45828</link>
    <description>&lt;P&gt;I have a question that I hope you can help me with.&lt;/P&gt;&lt;P&gt;I often use the Cox’s hazard regression with the PHREG procedure of SAS fitting multivariable models with several covariates. Below is an example of a model I used to analyze time to pregnancy in cows according to several covariates (all categorical covariates)&lt;/P&gt;&lt;P&gt;DPREG= Days to pregnancy&lt;/P&gt;&lt;P&gt;PEND = Pregnant at the end of study (0 or 1)&lt;/P&gt;&lt;P&gt;Covariates in the model are 4, all categories, and each with 2 levels: PTACCR, EXPN, PARPRE, and AIGRP&lt;/P&gt;&lt;P&gt;I obtain covariate adjusted survival functions with the BASELINE COVARIATES function in SAS.&lt;/P&gt;&lt;P&gt;My question to you is how can I obtain the covariate-adjusted median survival times and the respective 95% CI for each level of each covariate in the statistical model?&lt;/P&gt;&lt;P&gt;I request the predicted days when 50% of the population survives (OUT=PRED), but it does not give me the 95% CI.&lt;/P&gt;&lt;P&gt;If I use PROC LIFETEST, I obtain the median days to event and respective 95% CI, but those are from univariable models without multiple covariate adjustments; however, I would like to obtain the median days to event and respective 95% CI from the multivariable model in PHREG.&lt;/P&gt;&lt;P&gt;Is there a function or code in SAS PHREG that allows me to obtain the median days to event and respective 95% CI from the multivariable model (median days adjusted for covariates)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS HTML;&lt;/P&gt;&lt;P&gt;ODS GRAPHICS On;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;PHREG&lt;/STRONG&gt; DATA=GENONEW PLOTS (OVERLAY)=SURVIVAL;&lt;/P&gt;&lt;P&gt;CLASS PTACCR EXPN PARPRE AIGRPN;&lt;/P&gt;&lt;P&gt;MODEL DPREG*PEND(&lt;STRONG&gt;0&lt;/STRONG&gt;) = PTACCR EXPN PARPRE AIGRP/ RISKLIMITS TIES=EFRON;&lt;/P&gt;&lt;P&gt;BASELINE COVARIATES=GENONEW OUTDIFF=DIFFSURV OUT=PRED &amp;nbsp;SURVIVAL=_ALL_/DIRADJ GROUP=PTACCR;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=OUTPUTFILE XBETA=Xb STDXBETA=SE RESMART=Mart RESDEV=Dev;&lt;/P&gt;&lt;P&gt;HAZARDRATIO PTACCR;&lt;/P&gt;&lt;P&gt;ASSESS PH/RESAMPLE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 19:19:53 GMT</pubDate>
    <dc:creator>JEPSANTOS1</dc:creator>
    <dc:date>2024-03-28T19:19:53Z</dc:date>
    <item>
      <title>How to obtain covariate-adjusted median survival time in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922181#M45828</link>
      <description>&lt;P&gt;I have a question that I hope you can help me with.&lt;/P&gt;&lt;P&gt;I often use the Cox’s hazard regression with the PHREG procedure of SAS fitting multivariable models with several covariates. Below is an example of a model I used to analyze time to pregnancy in cows according to several covariates (all categorical covariates)&lt;/P&gt;&lt;P&gt;DPREG= Days to pregnancy&lt;/P&gt;&lt;P&gt;PEND = Pregnant at the end of study (0 or 1)&lt;/P&gt;&lt;P&gt;Covariates in the model are 4, all categories, and each with 2 levels: PTACCR, EXPN, PARPRE, and AIGRP&lt;/P&gt;&lt;P&gt;I obtain covariate adjusted survival functions with the BASELINE COVARIATES function in SAS.&lt;/P&gt;&lt;P&gt;My question to you is how can I obtain the covariate-adjusted median survival times and the respective 95% CI for each level of each covariate in the statistical model?&lt;/P&gt;&lt;P&gt;I request the predicted days when 50% of the population survives (OUT=PRED), but it does not give me the 95% CI.&lt;/P&gt;&lt;P&gt;If I use PROC LIFETEST, I obtain the median days to event and respective 95% CI, but those are from univariable models without multiple covariate adjustments; however, I would like to obtain the median days to event and respective 95% CI from the multivariable model in PHREG.&lt;/P&gt;&lt;P&gt;Is there a function or code in SAS PHREG that allows me to obtain the median days to event and respective 95% CI from the multivariable model (median days adjusted for covariates)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS HTML;&lt;/P&gt;&lt;P&gt;ODS GRAPHICS On;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;PHREG&lt;/STRONG&gt; DATA=GENONEW PLOTS (OVERLAY)=SURVIVAL;&lt;/P&gt;&lt;P&gt;CLASS PTACCR EXPN PARPRE AIGRPN;&lt;/P&gt;&lt;P&gt;MODEL DPREG*PEND(&lt;STRONG&gt;0&lt;/STRONG&gt;) = PTACCR EXPN PARPRE AIGRP/ RISKLIMITS TIES=EFRON;&lt;/P&gt;&lt;P&gt;BASELINE COVARIATES=GENONEW OUTDIFF=DIFFSURV OUT=PRED &amp;nbsp;SURVIVAL=_ALL_/DIRADJ GROUP=PTACCR;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=OUTPUTFILE XBETA=Xb STDXBETA=SE RESMART=Mart RESDEV=Dev;&lt;/P&gt;&lt;P&gt;HAZARDRATIO PTACCR;&lt;/P&gt;&lt;P&gt;ASSESS PH/RESAMPLE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 19:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922181#M45828</guid>
      <dc:creator>JEPSANTOS1</dc:creator>
      <dc:date>2024-03-28T19:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain covariate-adjusted median survival time in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922383#M45835</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464821"&gt;@JEPSANTOS1&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;Is there a function or code in SAS PHREG that allows me to obtain the median days to event and respective 95% CI from the multivariable model (median days adjusted for covariates)?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't think so, but I may be wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you analyze&amp;nbsp;time-to-event data (including covariates), you can try -- by means of a model (incl. target + regressors) -- to find out about :&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;mean survival time&lt;/LI&gt;
&lt;LI&gt;median survival time&lt;/LI&gt;
&lt;LI&gt;mean survival rate&amp;nbsp;at a specified time&lt;/LI&gt;
&lt;LI&gt;median survival rate&amp;nbsp;at a specified time&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;restricted mean survival time = RMST&lt;/STRONG&gt; (sometimes called the restricted mean event time)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The RMST is an alternative measure that is more often reliably estimable than the mean and median survival time in certain situations. Also, it provides a summary of the whole survival curve up to a time horizon, in contrast to the survival rate at a specified time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RMST can be fit with the&amp;nbsp;&lt;STRONG&gt;RMSTREG Procedure&lt;/STRONG&gt;.&lt;BR /&gt;Have a look ... maybe that RMST is what you are looking for.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/151/rmstreg.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/onlinedoc/stat/151/rmstreg.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 17:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922383#M45835</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-03-31T17:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain covariate-adjusted median survival time in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922640#M45851</link>
      <description>&lt;P&gt;Koen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! I was not aware of RMSTREG as a method to estimate adjusted means for time to event analysis with censored data. I will try it.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 21:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-obtain-covariate-adjusted-median-survival-time-in-PROC/m-p/922640#M45851</guid>
      <dc:creator>JEPSANTOS1</dc:creator>
      <dc:date>2024-04-02T21:43:06Z</dc:date>
    </item>
  </channel>
</rss>

