<?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: What is a faster way to run proc phreg on bootstrapped data? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642946#M30779</link>
    <description>that is a very good point, I will do this, thank you.</description>
    <pubDate>Sat, 25 Apr 2020 21:06:13 GMT</pubDate>
    <dc:creator>pamplemousse822</dc:creator>
    <dc:date>2020-04-25T21:06:13Z</dc:date>
    <item>
      <title>What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642672#M30753</link>
      <description>&lt;P&gt;I would like to run a cox model on bootstrapped data, 1000 replications. Currently, it takes 1 hour to run the model on the original data. Ultimately I have to repeat this for several models.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original data (dat) has 2 million observations, only includes variables used in the model, and no missing . I have access to 2 computers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions to make this more efficient?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am working with:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=dat out=dat_boot
   seed=3446 
   method=urs 
   samprate=1
   outhits rep=1000; 
run; 

proc phreg data=dat_boot outest=output covout noprint; 
   by replicate; 
   freq numberhits; 
   class zip a b c; 
   model time*y(0)=x e x*e a b c; 
   random zip; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 16:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642672#M30753</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2020-04-24T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642797#M30755</link>
      <description>&lt;P&gt;Which estimates are you wanting to bootstrap? Are you trying to get CIs that are not provided? With that many observations, I would think the normal approximation (by using the CL option) should be sufficient for the parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One option in traditional SAS is to use those two computers in parallel. On one, submit the PROC with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE replicate &amp;lt;= 500;&lt;/P&gt;
&lt;P&gt;and the other with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE replicate &amp;gt; 500;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a phreg.cox action in SAS Viya, if your company uses Viya. I think it supports the groupby= parameter for BY-group processing across multiple threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 21:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642797#M30755</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-24T21:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642804#M30756</link>
      <description>Hi,&lt;BR /&gt;I am trying get CIs for an estimate that uses a formula with the parameter estimates from the cox models, this final estimate has no CIs and bootstrapping would provide better coverage than calculating the standard error using the delta method.&lt;BR /&gt;&lt;BR /&gt;I'll try using the computers in parallel and specifying replicates. Don't have access to Viya. Does opening multiple SAS sessions on the same computer work? Or would that results in the same run time.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 24 Apr 2020 21:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642804#M30756</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2020-04-24T21:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642868#M30765</link>
      <description>&lt;P&gt;The ESTIMATE statement can provide estimates and CIs for linear combinations of the effect parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer your question: if you run multiple copies of SAS on the same PC, you are probably going to compete with yourself for resources. So use multiple computers if you pursue the bootstrap idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder whether a Bayesian analysis (using the BAYES statement in PROC PHREG) will give you the distribution of the estimates that you need. Anyway, I am not an expert on survival analysis, so I will let others offer their opinions. Good luck.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 11:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642868#M30765</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-25T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642934#M30776</link>
      <description>&lt;P&gt;Is your data clustered by Zips? If so, you should Google "bootstrapping clustered data", you'll find information about the pitfalls of ignoring the original sample structure when resampling.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 19:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642934#M30776</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-04-25T19:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642946#M30779</link>
      <description>that is a very good point, I will do this, thank you.</description>
      <pubDate>Sat, 25 Apr 2020 21:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642946#M30779</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2020-04-25T21:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642948#M30780</link>
      <description>I didn't realize you could use the estimate this way, sounds very useful. I'll check this and the Bayes statement out - thank you.</description>
      <pubDate>Sat, 25 Apr 2020 21:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642948#M30780</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2020-04-25T21:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is a faster way to run proc phreg on bootstrapped data?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642953#M30782</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/54903"&gt;@pamplemousse822&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Does opening multiple SAS sessions on the same computer work? Or would that results in the same run time.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/54903"&gt;@pamplemousse822&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the processor load (e.g., in Windows task manager) while one SAS session is running your PROC PHREG step. If CPU usage is well below 100%, chances are that you can run two (or more) sessions in parallel without doubling (multiplying) run time. I remember a SAS program (not PROC PHREG, though) running at about 12-13% CPU usage. It was&amp;nbsp;using essentially one of the eight available threads of my workstation's quad-core processor. With six SAS sessions in parallel (working on disjoint subsets of the data) CPU usage went up to about 75% (six threads) and thus I got my results almost six times faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 21:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-a-faster-way-to-run-proc-phreg-on-bootstrapped-data/m-p/642953#M30782</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-04-25T21:36:20Z</dc:date>
    </item>
  </channel>
</rss>

