<?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 create bootstrap with cox proportional hazards regression with a backward selection in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421647#M22172</link>
    <description>&lt;P&gt;Don't be Loopy - here's a full write up on doing simulations in SAS&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/183-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/183-2007.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not clear what your question for us here is...can you be more specific on what exactly you need assistance with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182666"&gt;@mili&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;I have 5 imputated datasets (&lt;FONT color="#FF6600"&gt;&lt;EM&gt;imput&lt;/EM&gt; &lt;EM&gt;j&lt;/EM&gt; &lt;/FONT&gt;= 1 to 5), for each one, I'd like to do this 200 times (&lt;FONT color="#0000FF"&gt;&lt;EM&gt;i&lt;/EM&gt; &lt;/FONT&gt;= 1 to 200)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;1) resample with replacement the same number of observations as in the original imputated dataset&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2) in this bootstrap dataset, run a cox proportional regression with backward selection&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) = R S T U V W X Y Z&amp;nbsp; / selection = backward;&lt;/DIV&gt;
&lt;DIV&gt;ods output parameterestimates =&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;3) the dataset&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;has a variable called "parameter" and each observation corresponds to the name of the one of the variable (either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;R S T U V W X Y Z&lt;/I&gt;) that was selected through backward selection in the previous set. I'd like applied these selected variables to find the corresponding Harrell concordance c-statistic&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;dataset&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;I&gt;estim&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;I&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=0db2130ba6&amp;amp;view=fimg&amp;amp;th=1605b0a4a37aa492&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_1605b0a4a37aa492&amp;amp;attbid=ANGjdJ9GmlAlsG5SC1jH7zOQecnN1SSY5N1fKbDdzccrHQYt3TpH5rUXeTziY_dEbqBsmj0yIO57TBBcs0-_pFZ1kRE9UAAH-BjLeyizPSmpXFxceswz8WfUVfoWk_Y&amp;amp;sz=s0-l75&amp;amp;ats=1513355889943&amp;amp;rm=1605b0a4a37aa492&amp;amp;zw" border="0" alt="Inline image 1" width="472" height="87" /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#339966"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;4)&amp;nbsp; find out the Harrell concordance c-statistic in the original imputated dataset using these variables&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#FF6600"&gt;&lt;I&gt;imput&amp;amp;j&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#008000"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;5) the datasets&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;and&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;have a variable "estimate" and "stderr". I'd like to be able to obtain the difference between those values:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stderr from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;stderr&amp;nbsp;from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;6) obtain the average of these differences (avg difference estimate +/- average difference stderr) for the 200 resamplings coming from each imputated dataset&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thank you for your help,&lt;/DIV&gt;
&lt;DIV&gt;Much appreciated&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 17:10:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-12-15T17:10:04Z</dc:date>
    <item>
      <title>how to create bootstrap with cox proportional hazards regression with a backward selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421646#M22171</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I have 5 imputated datasets (&lt;FONT color="#FF6600"&gt;&lt;EM&gt;imput&lt;/EM&gt; &lt;EM&gt;j&lt;/EM&gt; &lt;/FONT&gt;= 1 to 5), for each one, I'd like to do this 200 times (&lt;FONT color="#0000FF"&gt;&lt;EM&gt;i&lt;/EM&gt; &lt;/FONT&gt;= 1 to 200)&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;1) resample with replacement the same number of observations as in the original imputated dataset&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2) in this bootstrap dataset, run a cox proportional regression with backward selection&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) = R S T U V W X Y Z&amp;nbsp; / selection = backward;&lt;/DIV&gt;&lt;DIV&gt;ods output parameterestimates =&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3) the dataset&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;has a variable called "parameter" and each observation corresponds to the name of the one of the variable (either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;R S T U V W X Y Z&lt;/I&gt;) that was selected through backward selection in the previous set. I'd like applied these selected variables to find the corresponding Harrell concordance c-statistic&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;dataset&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;I&gt;estim&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=0db2130ba6&amp;amp;view=fimg&amp;amp;th=1605b0a4a37aa492&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_1605b0a4a37aa492&amp;amp;attbid=ANGjdJ9GmlAlsG5SC1jH7zOQecnN1SSY5N1fKbDdzccrHQYt3TpH5rUXeTziY_dEbqBsmj0yIO57TBBcs0-_pFZ1kRE9UAAH-BjLeyizPSmpXFxceswz8WfUVfoWk_Y&amp;amp;sz=s0-l75&amp;amp;ats=1513355889943&amp;amp;rm=1605b0a4a37aa492&amp;amp;zw" border="0" alt="Inline image 1" width="472" height="87" /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#339966"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;4)&amp;nbsp; find out the Harrell concordance c-statistic in the original imputated dataset using these variables&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#FF6600"&gt;&lt;I&gt;imput&amp;amp;j&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#008000"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;5) the datasets&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;and&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;have a variable "estimate" and "stderr". I'd like to be able to obtain the difference between those values:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stderr from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;stderr&amp;nbsp;from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;6) obtain the average of these differences (avg difference estimate +/- average difference stderr) for the 200 resamplings coming from each imputated dataset&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help,&lt;/DIV&gt;&lt;DIV&gt;Much appreciated&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421646#M22171</guid>
      <dc:creator>mili</dc:creator>
      <dc:date>2017-12-15T17:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to create bootstrap with cox proportional hazards regression with a backward selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421647#M22172</link>
      <description>&lt;P&gt;Don't be Loopy - here's a full write up on doing simulations in SAS&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/183-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/183-2007.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not clear what your question for us here is...can you be more specific on what exactly you need assistance with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182666"&gt;@mili&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;I have 5 imputated datasets (&lt;FONT color="#FF6600"&gt;&lt;EM&gt;imput&lt;/EM&gt; &lt;EM&gt;j&lt;/EM&gt; &lt;/FONT&gt;= 1 to 5), for each one, I'd like to do this 200 times (&lt;FONT color="#0000FF"&gt;&lt;EM&gt;i&lt;/EM&gt; &lt;/FONT&gt;= 1 to 200)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;1) resample with replacement the same number of observations as in the original imputated dataset&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2) in this bootstrap dataset, run a cox proportional regression with backward selection&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) = R S T U V W X Y Z&amp;nbsp; / selection = backward;&lt;/DIV&gt;
&lt;DIV&gt;ods output parameterestimates =&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;3) the dataset&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;&lt;FONT color="#339966"&gt;estim&amp;amp;i&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;has a variable called "parameter" and each observation corresponds to the name of the one of the variable (either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;R S T U V W X Y Z&lt;/I&gt;) that was selected through backward selection in the previous set. I'd like applied these selected variables to find the corresponding Harrell concordance c-statistic&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;dataset&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;I&gt;estim&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;I&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=0db2130ba6&amp;amp;view=fimg&amp;amp;th=1605b0a4a37aa492&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_1605b0a4a37aa492&amp;amp;attbid=ANGjdJ9GmlAlsG5SC1jH7zOQecnN1SSY5N1fKbDdzccrHQYt3TpH5rUXeTziY_dEbqBsmj0yIO57TBBcs0-_pFZ1kRE9UAAH-BjLeyizPSmpXFxceswz8WfUVfoWk_Y&amp;amp;sz=s0-l75&amp;amp;ats=1513355889943&amp;amp;rm=1605b0a4a37aa492&amp;amp;zw" border="0" alt="Inline image 1" width="472" height="87" /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;I&gt;boot&amp;amp;i&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#339966"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;4)&amp;nbsp; find out the Harrell concordance c-statistic in the original imputated dataset using these variables&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; proc phreg data =&amp;nbsp;&lt;FONT color="#FF6600"&gt;&lt;I&gt;imput&amp;amp;j&lt;/I&gt;&lt;/FONT&gt;;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model survival * censored (1) =&amp;nbsp;&lt;I&gt;&amp;nbsp;values that the variable "parameter" takes in &lt;FONT color="#008000"&gt;estim.&amp;amp;i&lt;/FONT&gt;&amp;nbsp; , here (R U W X Z)&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ods output concordance =&lt;I&gt;&amp;nbsp;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;5) the datasets&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;and&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&lt;/I&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;have a variable "estimate" and "stderr". I'd like to be able to obtain the difference between those values:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;estimate from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stderr from&amp;nbsp;&lt;I&gt;cstatboot&amp;amp;i&amp;nbsp;&lt;/I&gt;&amp;nbsp;-&amp;nbsp; &amp;nbsp;stderr&amp;nbsp;from&amp;nbsp;&lt;I&gt;cstatimput&amp;amp;i&amp;nbsp;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/DIV&gt;
&lt;DIV&gt;6) obtain the average of these differences (avg difference estimate +/- average difference stderr) for the 200 resamplings coming from each imputated dataset&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thank you for your help,&lt;/DIV&gt;
&lt;DIV&gt;Much appreciated&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421647#M22172</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-15T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create bootstrap with cox proportional hazards regression with a backward selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421655#M22173</link>
      <description>Thanks for you reply.&lt;BR /&gt;&lt;BR /&gt;I just realized I've omitted the following in my code in my initial post:&lt;BR /&gt;&lt;BR /&gt;3) proc phreg data = *boot&amp;amp;i **concordance=harrell (se);*&lt;BR /&gt;model survival * censored (1) = * values that the variable "parameter"&lt;BR /&gt;takes in estim.&amp;amp;i , here (R U W X Z)*;&lt;BR /&gt;ods output concordance =* cstatboot&amp;amp;i *;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;4) find out the Harrell concordance c-statistic in the original imputated&lt;BR /&gt;dataset using these variables&lt;BR /&gt;&lt;BR /&gt;proc phreg data = *imput&amp;amp;j **concordance=harrell (se);*&lt;BR /&gt;model survival * censored (1) = * values that the variable "parameter"&lt;BR /&gt;takes in estim.&amp;amp;i , here (R U W X Z)*;&lt;BR /&gt;ods output concordance =* cstatimput&amp;amp;i *;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I've read the "Don't be Loopy" document, but I cannot find what I am&lt;BR /&gt;looking for:&lt;BR /&gt;&lt;BR /&gt;1) how to code to use the variable retained by the backward selection into&lt;BR /&gt;a proc phreg procedure (step #3 and 4 from my initial post) to obtain the&lt;BR /&gt;Harrell concordance statistics.&lt;BR /&gt;&lt;BR /&gt;2) how to code to output the results of these 2 Harrell statistics to be&lt;BR /&gt;able to obtain the average difference between them.&lt;BR /&gt;&lt;BR /&gt;I hope this is clearer...&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421655#M22173</guid>
      <dc:creator>mili</dc:creator>
      <dc:date>2017-12-15T17:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create bootstrap with cox proportional hazards regression with a backward selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421656#M22174</link>
      <description>&lt;P&gt;Post your code using the code boxes. I can't tell if the asterisks are part of your code or something the forum added, because they don't make sense to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your questions are the following?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;1) how to code to use the variable retained by the backward selection into&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a proc phreg procedure (step #3 and 4 from my initial post) to obtain the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Harrell concordance statistics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) how to code to output the results of these 2 Harrell statistics to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;able to obtain the average difference between them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a worked example using one of the SASHELP data sets, maybe HEART or one from the docs so we can run something and help you out?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use the ODS OUTPUT and ParameterEstimates table to get the variables included in the model .You can feed that to your next process by creating a macro variable list out of the variables.&lt;/P&gt;
&lt;P&gt;2. Not sure without seeing output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll move this to the statistical procedures forum where someone else may be able to help as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421656#M22174</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-15T17:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to create bootstrap with cox proportional hazards regression with a backward selection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421679#M22178</link>
      <description>&lt;P&gt;yes, these are my 2 questions! Here is a very rough attempt of coding using the Heart dataset as an example. The "??" correspond to my questions, where I do not know how to code adequately!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* from SASHELP data sets: HEART;
	let's pretend: 	status = 1 -&amp;gt; alive
					status = 0 -&amp;gt; dead
					
					survival = AgeAtDeath - AgeAtStart 

I'd like to do the following 200 times (i = 1 to 200)


1) resample with replacement the same number of observations as in the original imputated dataset
2) in this bootstrap dataset, run a cox proportional regression with backward selection
3) Apply the variables that were selected from the backward procedure, i.e. under variable "parameter" in the bootstrap 
	dataset -&amp;gt; "&amp;amp;outdata.predictor&amp;amp;i", and find the corresponding Harrell concordance c-statistic for this model in this bootstrap
	and output the "estimate" and "stderr" from the Harrel c-stat added to dataset "performance", where the variable "estimate"
	corresponds to variable estimboot; the variable "stderr" corresponds to variable stdboot for the corresponding
	bootstrap variable boot (thus &amp;amp;i).
4) Apply the variables that were selected from the backward procedure, i.e. under variable "parameter" in the original 
	dataset -&amp;gt; "&amp;amp;outdata.estim&amp;amp;i", and find the corresponding Harrell concordance c-statistic for this model in the original dataset
	-&amp;gt; &amp;amp;indataset., and also added to dataset "performance", where the variable "estimate"
	corresponds to variable estimimpute; the variable "stderr" corresponds to variable stdimput for the corresponding
	bootstrap variable boot (thus &amp;amp;i).
5) in the "performance" dataset: obtain the difference between "estimate original - estimate bootstrap" and 
	"stderr original - stderr bootstrap" as to be able to obtain the average difference for the estimate and stderr

*/

%macro resample (indataset=, outdata=, reps=, size=);
%do i=1 %to &amp;amp;reps;

	proc surveyselect data = &amp;amp;indataset. out = &amp;amp;outdata.&amp;amp;i. noprint
     	method = urs
     	sampsize = &amp;amp;size outhits ;
  	run;


	proc phreg data = &amp;amp;outdata.&amp;amp;i;
   		model survival * status (1) = sex Systolic Smoking Cholesterol Weight / selection = backward;
		ods output parameterestimates = &amp;amp;outdata.predictor&amp;amp;i;
	run;


	proc phreg data = &amp;amp;outdata.&amp;amp;i concordance=harrell (se);
		model survival * status (1) =  ?? -&amp;gt; values that the variable parameter takes in predistor&amp;amp;i;
		 ?? the parameterestimates:
				estimate is added to the column variable estboot under the observation line corresponding to the boostrap # (&amp;amp;i)
					in the dataset performance
				stderr is added to the column variable stdboot under the observation line corresponding to the boostrap # (&amp;amp;i)
					in the dataset performance
	run; 

	proc phreg data = &amp;amp;indataset.&amp;amp;i concordance=harrell (se);
   		model survival * status (1) =  ?? -&amp;gt; values that the variable parameter takes in predistor&amp;amp;i;
		 ?? the parameterestimates:
				estimate is added to the column variable estimpute under the observation line corresponding to the boostrap # (&amp;amp;i)
					in the dataset performance
				stderr is added to the column variable stdimpute under the observation line corresponding to the boostrap # (&amp;amp;i)
					in the dataset performance
	run;

%end;
%mend;

%resample (indataset=sashelp.heart, outdata=work.bootstrap, reps=200,size= 5209);


data summary; set performance;
		diff_estim = estimpute - estboot;
		diff_stderr = stdimpute - stdboot;
	run;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 15 Dec 2017 19:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-create-bootstrap-with-cox-proportional-hazards-regression/m-p/421679#M22178</guid>
      <dc:creator>mili</dc:creator>
      <dc:date>2017-12-15T19:04:12Z</dc:date>
    </item>
  </channel>
</rss>

