<?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 Baseline statement in Proc Phreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535603#M26961</link>
    <description>&lt;P&gt;While the running the proc phreg on counting data framework, I am using baseline statement as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = mod plots(overlay cl) = (survival cumhaz) outest = est namelen = 50;&lt;BR /&gt;model (start, stop) * depvar (0) = &amp;amp;model_varlist. / itprint rl = both ties = breslow selection = stepwise sle = 0.2 sls = 0.05;&lt;BR /&gt;baseline out = baseline survival = survival xbeta = xbeta covariates = val cumhaz = cumhaz / method = pl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my covariates dataset have close to 3 million records. Baseline data creates 20 observations for each of these 3 million observations as my modeling data experienced events at 20 time points. With 60 million observation data, my disk space and memory throws error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not interested in all 20 survival probabilities. Is there a way I can stop the baseline to create 20 probabilities. Only 1 or 2 survival probabilities at t = 30 and 60 days will suffice. This way my data set will only be of 6 million observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any immediate help is highly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 14:40:34 GMT</pubDate>
    <dc:creator>mayankdce1</dc:creator>
    <dc:date>2019-02-14T14:40:34Z</dc:date>
    <item>
      <title>Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535603#M26961</link>
      <description>&lt;P&gt;While the running the proc phreg on counting data framework, I am using baseline statement as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc phreg data = mod plots(overlay cl) = (survival cumhaz) outest = est namelen = 50;&lt;BR /&gt;model (start, stop) * depvar (0) = &amp;amp;model_varlist. / itprint rl = both ties = breslow selection = stepwise sle = 0.2 sls = 0.05;&lt;BR /&gt;baseline out = baseline survival = survival xbeta = xbeta covariates = val cumhaz = cumhaz / method = pl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my covariates dataset have close to 3 million records. Baseline data creates 20 observations for each of these 3 million observations as my modeling data experienced events at 20 time points. With 60 million observation data, my disk space and memory throws error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not interested in all 20 survival probabilities. Is there a way I can stop the baseline to create 20 probabilities. Only 1 or 2 survival probabilities at t = 30 and 60 days will suffice. This way my data set will only be of 6 million observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any immediate help is highly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 14:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535603#M26961</guid>
      <dc:creator>mayankdce1</dc:creator>
      <dc:date>2019-02-14T14:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535625#M26965</link>
      <description>&lt;P&gt;Have you tried the TIMELIST option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.phreg.phtimelist" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.phreg.phtimelist&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class=" aa-term "&gt;TIMEPOINT=&lt;SPAN class=" aa-argument"&gt;list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;specifies a&lt;SPAN class=" aa-argument"&gt;list&lt;/SPAN&gt;of time points at which the requested prediction statistics are output to the OUT= and the OUTDIFF= data sets. The prediction statistics in the OUT= data set include the survivor function estimates, the direct adjusted survivor function estimates, the cumulative hazard function estimates, and the cumulative incidence function estimates. If the&lt;SPAN class=" aa-argument"&gt;list&lt;/SPAN&gt;contains time points that are greater than the largest observed time, the requested prediction statistics might not be defined for these time points and are not output.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;baseline out = baseline survival = survival xbeta = xbeta covariates = val cumhaz = cumhaz / method = pl timelist = 30 60;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212962"&gt;@mayankdce1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;While the running the proc phreg on counting data framework, I am using baseline statement as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc phreg data = mod plots(overlay cl) = (survival cumhaz) outest = est namelen = 50;&lt;BR /&gt;model (start, stop) * depvar (0) = &amp;amp;model_varlist. / itprint rl = both ties = breslow selection = stepwise sle = 0.2 sls = 0.05;&lt;BR /&gt;baseline out = baseline survival = survival xbeta = xbeta covariates = val cumhaz = cumhaz / method = pl;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, my covariates dataset have close to 3 million records. Baseline data creates 20 observations for each of these 3 million observations as my modeling data experienced events at 20 time points. With 60 million observation data, my disk space and memory throws error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not interested in all 20 survival probabilities. Is there a way I can stop the baseline to create 20 probabilities. Only 1 or 2 survival probabilities at t = 30 and 60 days will suffice. This way my data set will only be of 6 million observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any immediate help is highly appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 16:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535625#M26965</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-14T16:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535799#M26972</link>
      <description>&lt;P&gt;Timelist option works only for Bayesian analysis. Here's the note I am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The TIMELIST= option is ignored for a non-Bayesian analysis.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 05:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535799#M26972</guid>
      <dc:creator>mayankdce1</dc:creator>
      <dc:date>2019-02-15T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535884#M26974</link>
      <description>Can you post some demo code so we can test please?</description>
      <pubDate>Fri, 15 Feb 2019 15:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535884#M26974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T15:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535888#M26975</link>
      <description>&lt;P&gt;You can filter it out on the OUT statement, but not sure that will help with the memory issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;   baseline covariates=Risk &lt;FONT size="4" color="#800080"&gt;&lt;STRONG&gt;out=out1(where=(t in (100, 1000)))&lt;/STRONG&gt;&lt;/FONT&gt; cif=_all_ / seed=191 ;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212962"&gt;@mayankdce1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Timelist option works only for Bayesian analysis. Here's the note I am getting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The TIMELIST= option is ignored for a non-Bayesian analysis.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535888#M26975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Baseline statement in Proc Phreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535890#M26976</link>
      <description>&lt;P&gt;I tried it with SAS STAT 14.3 and 15.1 and it seems fine, at least no errors about bayesian needed. Perhaps you have an older version of SAS/STAT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
   value DiseaseGroup 1='ALL'
                      2='AML-Low Risk'
                      3='AML-High Risk';

data Bmt;
   input Disease T Status @@;
   label T='Disease-Free Survival in Days';
   format Disease DiseaseGroup.;
   datalines;
1   2081   0   1   1602   0   1   1496   0   1   1462   0   1   1433   0
1   1377   0   1   1330   0   1    996   0   1    226   0   1   1199   0
1   1111   0   1    530   0   1   1182   0   1   1167   0   1    418   2
1    383   1   1    276   2   1    104   1   1    609   1   1    172   2
1    487   2   1    662   1   1    194   2   1    230   1   1    526   2
1    122   2   1    129   1   1     74   1   1    122   1   1     86   2
1    466   2   1    192   1   1    109   1   1     55   1   1      1   2
1    107   2   1    110   1   1    332   2   2   2569   0   2   2506   0
2   2409   0   2   2218   0   2   1857   0   2   1829   0   2   1562   0
2   1470   0   2   1363   0   2   1030   0   2    860   0   2   1258   0
2   2246   0   2   1870   0   2   1799   0   2   1709   0   2   1674   0
2   1568   0   2   1527   0   2   1324   0   2    957   0   2    932   0
2    847   0   2    848   0   2   1850   0   2   1843   0   2   1535   0
2   1447   0   2   1384   0   2    414   2   2   2204   2   2   1063   2
2    481   2   2    105   2   2    641   2   2    390   2   2    288   2
2    421   1   2     79   2   2    748   1   2    486   1   2     48   2
2    272   1   2   1074   2   2    381   1   2     10   2   2     53   2
2     80   2   2     35   2   2    248   1   2    704   2   2    211   1
2    219   1   2    606   1   3   2640   0   3   2430   0   3   2252   0
3   2140   0   3   2133   0   3   1238   0   3   1631   0   3   2024   0
3   1345   0   3   1136   0   3    845   0   3    422   1   3    162   2
3     84   1   3    100   1   3      2   2   3     47   1   3    242   1
3    456   1   3    268   1   3    318   2   3     32   1   3    467   1
3     47   1   3    390   1   3    183   2   3    105   2   3    115   1
3    164   2   3     93   1   3    120   1   3     80   2   3    677   2
3     64   1   3    168   2   3     74   2   3     16   2   3    157   1
3    625   1   3     48   1   3    273   1   3     63   2   3     76   1
3    113   1   3    363   2
;

data Risk;
   Disease=1; output;
   Disease=2; output;
   Disease=3; output;
   format Disease DiseaseGroup.;
   run;

ods graphics on;
proc phreg data=Bmt plots(overlay=stratum)=cif;
   class Disease (order=internal ref=first);
   model T*Status(0)=Disease / eventcode=1;
   Hazardratio 'Pairwise' Disease / diff=pairwise;
   baseline covariates=Risk out=out1(where=(t in (100, 1000))) cif=_all_ &lt;FONT size="5" color="#800080"&gt;&lt;STRONG&gt;timelist=100 1000&lt;/STRONG&gt;&lt;/FONT&gt;/ seed=191 ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check your version of SAS/STAT if needed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's possible some other option in your analysis is causing this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Baseline-statement-in-Proc-Phreg/m-p/535890#M26976</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T16:15:27Z</dc:date>
    </item>
  </channel>
</rss>

