<?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: Multipass option in PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/602387#M29292</link>
    <description>&lt;P&gt;Yes, the Cox-aggregate macro can also be used instead of the fast-option. It willdo the aggregation on riskset. The weigt statement in phreg should then be used to specify how many person there are at risk. Examples of how to do this is below the macro.&lt;/P&gt;
&lt;P&gt;It will make a much smaller utility file so you shouldnt get problems with disk-space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont see any reason for experimenting with using multipass or not, because, if the utility file can be created once, then it almost sure can be recreated again for each iteration. It may save a bit time to use it, or not use it, but it will not do the major difference. The major difference is obtained by aggregating.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 13:55:49 GMT</pubDate>
    <dc:creator>JacobSimonsen</dc:creator>
    <dc:date>2019-11-07T13:55:49Z</dc:date>
    <item>
      <title>Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600542#M29216</link>
      <description>&lt;P&gt;I am running a Cox model with multiple time-variant covariates and I have 1.5 million records. The model has taken up too much disk space and I could not run my model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learn about MULTIPASS option and I was wondering if this option works for time-dependent variables defined using programming statement? I know this will work in counting process data but will MULTIPASS work in programming statement? I can run my program but it has been days and is still running. Just wondering if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confused with the last sentence on the online documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MULTIPASS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;requests that, for each Newton-Raphson iteration, PROC PHREG recompile the risk sets corresponding to the event times for the (start,stop) style of response and recomputes the values of the time-dependent variables defined by the programming statements for each observation in the risk sets. If the MULTIPASS option is not specified, PROC PHREG computes all risk sets and all the variable values and saves them in a utility file. The MULTIPASS option decreases required disk space at the expense of increased execution time; however, for very large data, it might actually save time since it is time-consuming to write and read large utility files. &lt;STRONG&gt;&lt;U&gt;This option has an effect only when the (start,stop) style of response is used&lt;/U&gt;&lt;/STRONG&gt; or when there are time-dependent explanatory variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your input is very much appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 21:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600542#M29216</guid>
      <dc:creator>chrisd9970</dc:creator>
      <dc:date>2019-10-30T21:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600706#M29217</link>
      <description>&lt;P&gt;The last sentence is telling you that the MULTIPASS option is only relevant when your MODEL statement looks like&lt;/P&gt;
&lt;P&gt;model (TStart,TStop)*Status(0)=Trt Age ... ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600706#M29217</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-31T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600722#M29225</link>
      <description>&lt;P&gt;Thanks Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That means MULTIPASS will not work using programming statement? Only counting process datasets have TimeStart and TimeStop, right? There is usually one TIME variable in the model statement for the programming statement method. Below is a sample of my code with only one time dependent covariate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   proc phreg data=mydata;
      model Time*Status(0)=RiskFactor;
      RiskFactor = (0 &amp;lt;= RiskFactorStart &amp;lt; Time);
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600722#M29225</guid>
      <dc:creator>chrisd9970</dc:creator>
      <dc:date>2019-10-31T15:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600734#M29226</link>
      <description>&lt;P&gt;I didn't mean to imply that. I was trying to translate the portion of the sentence that you boldfaced. The last portion of the same sentence says "&lt;SPAN&gt;or when there are time-dependent explanatory variables."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 16:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600734#M29226</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-31T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600737#M29227</link>
      <description>&lt;P&gt;Oh.. pardon me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my code should run. But it's taking too long.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/600737#M29227</guid>
      <dc:creator>chrisd9970</dc:creator>
      <dc:date>2019-10-31T16:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/601588#M29263</link>
      <description>&lt;P&gt;The problem is that &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;PROC PHREG&lt;/SPAN&gt; will not per default make aggregation on each riskset when time-dependent variables are present. Its also not always that it will be possible. Instead, it for each event go evaluate every individual whether it is at risk at that eventtime or not. That makes the running time quadratic relative to the cohort size. If multipass option is used, then it do this exercise again for each iteration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your timedependent covariate is piecewise constant, then you can chop your data into intervals. Such that you will have both an entry and exittime variable. Then specify the "fast" option to tell PROC PHREG that it should use the aggregetion technique when it calculate the likelihood function. The calculation time will then only be linear relative to the cohort size, and you will probably be surprised how fast go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 07:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/601588#M29263</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2019-11-05T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/602308#M29291</link>
      <description>&lt;P&gt;Thanks so much Jacob. My PHREG works now. Before, I specified risk limits, rl=pl. I changed it to just rl and my model works faster. I still have to use MULTIPASS or else I blow up the disk space again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FAST option doesn't work for me. I think it has to do with the SAS environment I have at work. Below is my error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; An exception has been encountered.&lt;/P&gt;&lt;P&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS task name is [PHREG&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;Segmentation Violation&lt;/P&gt;&lt;P&gt;---------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also saw your other post about the &lt;SPAN&gt;&amp;nbsp;%coxaggregate&amp;nbsp;&lt;/SPAN&gt;macro. I will try it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your reply to my question!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 04:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/602308#M29291</guid>
      <dc:creator>chrisd9970</dc:creator>
      <dc:date>2019-11-07T04:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multipass option in PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/602387#M29292</link>
      <description>&lt;P&gt;Yes, the Cox-aggregate macro can also be used instead of the fast-option. It willdo the aggregation on riskset. The weigt statement in phreg should then be used to specify how many person there are at risk. Examples of how to do this is below the macro.&lt;/P&gt;
&lt;P&gt;It will make a much smaller utility file so you shouldnt get problems with disk-space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont see any reason for experimenting with using multipass or not, because, if the utility file can be created once, then it almost sure can be recreated again for each iteration. It may save a bit time to use it, or not use it, but it will not do the major difference. The major difference is obtained by aggregating.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multipass-option-in-PHREG/m-p/602387#M29292</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2019-11-07T13:55:49Z</dc:date>
    </item>
  </channel>
</rss>

