<?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: How to calculate brier score for cox model in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458424#M3177</link>
    <description>&lt;P&gt;Using the introductory example for &lt;STRONG&gt;proc phreg&lt;/STRONG&gt; documentation and my limited understanding of the&lt;A href="https://en.wikipedia.org/wiki/Brier_score" target="_self"&gt; Wikipédia page &lt;/A&gt;, The calculation of the Brier score&amp;nbsp;should&amp;nbsp;go like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* The following DATA step creates the data set Rats, which contains the 
variable Days (the survival time in days), the variable Status (the 
censoring indicator variable: 0 if censored and 1 if not censored), 
and the variable Group (the pretreatment group indicator). 
*/

data Rats;
   label Days  ='Days from Exposure to Death';
   input Days Status Group @@;
   datalines;
143 1 0   164 1 0   188 1 0   188 1 0
190 1 0   192 1 0   206 1 0   209 1 0
213 1 0   216 1 0   220 1 0   227 1 0
230 1 0   234 1 0   246 1 0   265 1 0
304 1 0   216 0 0   244 0 0   142 1 1
156 1 1   163 1 1   198 1 1   205 1 1
232 1 1   232 1 1   233 1 1   233 1 1
233 1 1   233 1 1   239 1 1   240 1 1
261 1 1   280 1 1   280 1 1   296 1 1
296 1 1   323 1 1   204 0 1   344 0 1
;

proc phreg data=Rats plot=none;
   model Days*Status(0)=Group;
   output out=ratsSurv survival=surv;
run;

proc sql;
select
    mean((status-(1-surv))**2) as BrierScore
from ratsSurv;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 29 Apr 2018 05:11:38 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-04-29T05:11:38Z</dc:date>
    <item>
      <title>How to calculate brier score for cox model</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458345#M3176</link>
      <description>&lt;P&gt;Hello community, I have tried to look for any SAS&amp;nbsp; material about computing brier score in survival analysis but I haven't been able to find any useful material.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I request for help on how to compute brier score for cox model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 12:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458345#M3176</guid>
      <dc:creator>Joseph2010</dc:creator>
      <dc:date>2018-04-28T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate brier score for cox model</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458424#M3177</link>
      <description>&lt;P&gt;Using the introductory example for &lt;STRONG&gt;proc phreg&lt;/STRONG&gt; documentation and my limited understanding of the&lt;A href="https://en.wikipedia.org/wiki/Brier_score" target="_self"&gt; Wikipédia page &lt;/A&gt;, The calculation of the Brier score&amp;nbsp;should&amp;nbsp;go like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* The following DATA step creates the data set Rats, which contains the 
variable Days (the survival time in days), the variable Status (the 
censoring indicator variable: 0 if censored and 1 if not censored), 
and the variable Group (the pretreatment group indicator). 
*/

data Rats;
   label Days  ='Days from Exposure to Death';
   input Days Status Group @@;
   datalines;
143 1 0   164 1 0   188 1 0   188 1 0
190 1 0   192 1 0   206 1 0   209 1 0
213 1 0   216 1 0   220 1 0   227 1 0
230 1 0   234 1 0   246 1 0   265 1 0
304 1 0   216 0 0   244 0 0   142 1 1
156 1 1   163 1 1   198 1 1   205 1 1
232 1 1   232 1 1   233 1 1   233 1 1
233 1 1   233 1 1   239 1 1   240 1 1
261 1 1   280 1 1   280 1 1   296 1 1
296 1 1   323 1 1   204 0 1   344 0 1
;

proc phreg data=Rats plot=none;
   model Days*Status(0)=Group;
   output out=ratsSurv survival=surv;
run;

proc sql;
select
    mean((status-(1-surv))**2) as BrierScore
from ratsSurv;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Apr 2018 05:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458424#M3177</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-29T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate brier score for cox model</title>
      <link>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458427#M3178</link>
      <description>&lt;P&gt;Thank you very much for the assistance,. The solution works perfectly.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 09:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/How-to-calculate-brier-score-for-cox-model/m-p/458427#M3178</guid>
      <dc:creator>Joseph2010</dc:creator>
      <dc:date>2018-04-29T09:17:35Z</dc:date>
    </item>
  </channel>
</rss>

