<?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: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/500291#M25810</link>
    <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;I request for cross examination to know if am following the procedures well&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You appear to have followied my suggestions, but as&amp;nbsp;I said, I am not an expert in survival analysis, and I have never heard of Roysten's D.&amp;nbsp; What I would do is to&amp;nbsp;rerun one of the examples in the references: get the data that they used and make sure you get the same answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; What is the purpose of the following statement in the procedure where I have the following:&amp;nbsp;&lt;STRONG&gt;model data=quantile;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ODS OUTPUT statement sends the data in the Q-Q plot to the 'QQ' data set. If&amp;nbsp;you use PROC&amp;nbsp;&amp;nbsp;PRINT, you will see that the X variable in the Q-Q plot is named 'QUANTILE' and the&amp;nbsp;Y variable is named 'DATA'. Thus the statement MODEL DATA = QUANTILE&lt;/P&gt;
&lt;P&gt;asks PROC REG to regress Y onto X, which are the observed rank-order statistics against the corresponding&amp;nbsp;normal quantiles. The slope of the regression line is the parameter estimate that you want.&amp;nbsp; When Y is normally distributed, the slope of the Q-Q plot should be close to the standard deviation of Y.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2018 09:57:13 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-10-01T09:57:13Z</dc:date>
    <item>
      <title>CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499392#M25785</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am requesting for assistance, I want to calculate Royston's D index for my cox model but I have failed to come across any procedure that I can use to calculate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 07:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499392#M25785</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-09-27T07:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499707#M25786</link>
      <description>&lt;P&gt;Please supply a reference for the statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also let us know your version of SAS and whether you have a license for the SAS/IML&amp;nbsp;product.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 20:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499707#M25786</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-27T20:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499795#M25793</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hello Rick,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Below is a brief summary about this statistic.&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Royston’s D-index&amp;nbsp;is a measure of prognostic separation in survival data.&amp;nbsp; D measures prognostic separation of survival curves and is closely related to the standard deviation of the prognostic index.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The prognostic index for each subject is defined to be the linear predictor from the fitted Cox proportional hazards model. Ranking the prognostic index across the sample, one assigns to the ith subject the ith expected standard normal order statistic in a sample of the same size.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Using a Cox proportional hazards model, one then regresses the original time-to-event outcome on the expected standard normal order statistics. Royston’s D-index is defined to be the estimated regression coefficient multiplied by&amp;nbsp;&amp;nbsp;√&amp;nbsp;8/&lt;I&gt;π&lt;/I&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;D can be&amp;nbsp;interpreted as an estimate of the log hazard ratio comparing two prognostic groups of equal size (i.e. if one had dichotomized the linear predictor at the sample median).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;The details can be found in the following two papers&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;1.&amp;nbsp;Peter C Austin, Michael J Pencinca and Ewout W Steyerberg.(2017).&amp;nbsp;&lt;SPAN&gt;Predictive accuracy of novel risk factors and markers: A simulation study of the sensitivity of different performance measures for the Cox proportional hazards regression model.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;2.&amp;nbsp;M. Shafiqur Rahman, Gareth Ambler, Babak Choodari-Oskooei and Rumana Z. Omar. (2017)&amp;nbsp; .&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;Review and evaluation of performance measures for survival prediction models in external validation settings.&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial, helvetica, clean, sans-serif" size="3"&gt;I have attached screen shorts of the formulas&amp;nbsp;also.&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial, helvetica, clean, sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial, helvetica, clean, sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial, helvetica, clean, sans-serif" size="3"&gt;I have a license for SAS 9.4 University Edition which is licensed to the University.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Sep 2018 07:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499795#M25793</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-09-28T07:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499847#M25794</link>
      <description>&lt;P&gt;I hope that someone who knows more about survival analysis than I do will chime in, but it sounds like the main steps in this analysis are:&lt;/P&gt;
&lt;P&gt;1. Use the PHREG procedure to fit a Cox regression model to the data and obtain the linear predictor.&lt;/P&gt;
&lt;P&gt;2.&lt;A href="https://blogs.sas.com/content/iml/2011/10/28/modeling-the-distribution-of-data-create-a-qq-plot.html" target="_self"&gt; Make a normal Q-Q plot of the linear predictor&lt;/A&gt;. Use OLS (PROC REG) to estimate the slope, sigma.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. D = sqrt(8/pi) * sigma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you know &lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_self"&gt;how to use the ODS OUTPUT statement to capture statistics from a table&lt;/A&gt; and put it in a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A note on creating the normal Q-Q plot. You can use PROC UNIVARIATE to compute the Q-Q plot and to output the&amp;nbsp;quantiles. For example, the following gets the coordinates for a Q-Q plot and performs a linear regression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=sashelp.class;
var weight;
qqplot weight;
ods output qqplot = qq;  /* put quantiles and data in QQ data set */
run;

proc reg data=QQ plots(only)=fitplot;
model data=quantile;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 11:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/499847#M25794</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-28T11:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/500278#M25809</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Rick,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have attempted to do it as follow, I request for cross examination to know if am following the procedures well,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc phreg data=model;&lt;BR /&gt;class Sex(ref='1') AGE(ref='1');&lt;BR /&gt;model Years * censor (0)= Sex AGE/ rl&lt;BR /&gt;Output Out=Model survival=survest;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc univariate data=&lt;SPAN&gt;Model&lt;/SPAN&gt;;&lt;BR /&gt;var &lt;SPAN&gt;survest&lt;/SPAN&gt;;&lt;BR /&gt;qqplot &lt;SPAN&gt;survest&lt;/SPAN&gt;;&lt;BR /&gt;ods output qqplot = qq; /* put quantiles and data in QQ data set */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=QQ plots(only)=fitplot;&lt;BR /&gt;model data=quantile;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* I got a standard deviation of 0.66196 which I presumed to be the Sigma you talked about and I replaced pi with its standard value of&amp;nbsp;3.14159265359, then I created the data below containing the desired statistics*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Royston; set QQ;&lt;BR /&gt;Roystons_D = sqrt(8/3.14159265359) * 0.66196;&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some question,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the purpose of the following statement in the procedure where I have the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;model data=quantile;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to confirm whether I did it in the right way.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I will be glad for some clarifications.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/500278#M25809</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-10-01T07:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/500291#M25810</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;I request for cross examination to know if am following the procedures well&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You appear to have followied my suggestions, but as&amp;nbsp;I said, I am not an expert in survival analysis, and I have never heard of Roysten's D.&amp;nbsp; What I would do is to&amp;nbsp;rerun one of the examples in the references: get the data that they used and make sure you get the same answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; What is the purpose of the following statement in the procedure where I have the following:&amp;nbsp;&lt;STRONG&gt;model data=quantile;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ODS OUTPUT statement sends the data in the Q-Q plot to the 'QQ' data set. If&amp;nbsp;you use PROC&amp;nbsp;&amp;nbsp;PRINT, you will see that the X variable in the Q-Q plot is named 'QUANTILE' and the&amp;nbsp;Y variable is named 'DATA'. Thus the statement MODEL DATA = QUANTILE&lt;/P&gt;
&lt;P&gt;asks PROC REG to regress Y onto X, which are the observed rank-order statistics against the corresponding&amp;nbsp;normal quantiles. The slope of the regression line is the parameter estimate that you want.&amp;nbsp; When Y is normally distributed, the slope of the Q-Q plot should be close to the standard deviation of Y.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 09:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/500291#M25810</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-01T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATION OF ROYSTON'S D INDEX FOR COX MODEL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/654708#M31450</link>
      <description>&lt;P&gt;I know I am 'late' to this conversation, but I was similarly looking to calculate the D-Index and had the advantage of R code created by another statistician to use as I was working through steps.&amp;nbsp; Royston and Sauerbrei's original article has a bit more detail than the description in Austin et. al. and it makes a difference in the final calculations.&amp;nbsp; I'll post the macro I created as soon as I am on the active enough on the community&amp;nbsp; to do so.... (Or if there is too much of a delay, I'll have a colleague do it for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 00:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CALCULATION-OF-ROYSTON-S-D-INDEX-FOR-COX-MODEL/m-p/654708#M31450</guid>
      <dc:creator>sshetter</dc:creator>
      <dc:date>2020-06-09T00:16:22Z</dc:date>
    </item>
  </channel>
</rss>

