<?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 Cumulative Residual Plots (CURE plots) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/447772#M23446</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on generating regression&amp;nbsp;models to fit collision&amp;nbsp;data. The general model approach is to use Negative Binomial Regression, using a log link function. The model could have been fitted using PROC GENMOD, I understand that in that code using ODS Graphics it would be possible to CURE Plots. However, this would be at a cost of assuming a fixed dispersion parameter. As such NL MIXED was the way to go as seen below.&lt;/P&gt;&lt;P&gt;Is there a way I can use NL MIXED to get my&amp;nbsp;cure plots, or do I need to set the model up in PROC GENMOD?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname db 'V:\data';&lt;BR /&gt;/* General Model Form: TOT=exp(alpha1)(AADT)^beta1 (Length)^beta2 (IRI)^beta3&amp;nbsp;&lt;BR /&gt;Dispersion (k)=exp(alpha2)(length)^beta4 */&lt;BR /&gt;&lt;BR /&gt;proc nlmixed data=db.dir5lane2;&lt;BR /&gt;parms alpha1 1 beta1 1 beta2 1 beta3 1 alpha2 1 beta4 1  ;
eta = alpha1 + beta1*logaadtn + beta2*loglength + beta3*logiri;
lambda = exp(eta);
eta_k = alpha2+beta4*loglength;
k = exp(eta_k);
loglike = (lgamma(TOT+(1/k)) - lgamma(TOT+1) - lgamma(1/k) +
              TOT*log(k*lambda) - (TOT+(1/k))*log(1+k*lambda));
model TOT ~ general(loglike);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestion&amp;nbsp;are appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iliya&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 16:15:37 GMT</pubDate>
    <dc:creator>iliyan</dc:creator>
    <dc:date>2018-03-22T16:15:37Z</dc:date>
    <item>
      <title>Cumulative Residual Plots (CURE plots)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/447772#M23446</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on generating regression&amp;nbsp;models to fit collision&amp;nbsp;data. The general model approach is to use Negative Binomial Regression, using a log link function. The model could have been fitted using PROC GENMOD, I understand that in that code using ODS Graphics it would be possible to CURE Plots. However, this would be at a cost of assuming a fixed dispersion parameter. As such NL MIXED was the way to go as seen below.&lt;/P&gt;&lt;P&gt;Is there a way I can use NL MIXED to get my&amp;nbsp;cure plots, or do I need to set the model up in PROC GENMOD?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname db 'V:\data';&lt;BR /&gt;/* General Model Form: TOT=exp(alpha1)(AADT)^beta1 (Length)^beta2 (IRI)^beta3&amp;nbsp;&lt;BR /&gt;Dispersion (k)=exp(alpha2)(length)^beta4 */&lt;BR /&gt;&lt;BR /&gt;proc nlmixed data=db.dir5lane2;&lt;BR /&gt;parms alpha1 1 beta1 1 beta2 1 beta3 1 alpha2 1 beta4 1  ;
eta = alpha1 + beta1*logaadtn + beta2*loglength + beta3*logiri;
lambda = exp(eta);
eta_k = alpha2+beta4*loglength;
k = exp(eta_k);
loglike = (lgamma(TOT+(1/k)) - lgamma(TOT+1) - lgamma(1/k) +
              TOT*log(k*lambda) - (TOT+(1/k))*log(1+k*lambda));
model TOT ~ general(loglike);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestion&amp;nbsp;are appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iliya&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/447772#M23446</guid>
      <dc:creator>iliyan</dc:creator>
      <dc:date>2018-03-22T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Residual Plots (CURE plots)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/448548#M23447</link>
      <description>Move question to " Statistical Procedures" to increase the chances of a reply.</description>
      <pubDate>Mon, 26 Mar 2018 02:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/448548#M23447</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-26T02:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Residual Plots (CURE plots)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/448665#M23449</link>
      <description>&lt;P&gt;By default, GENMOD estimates the negative binomial dispersion parameter by maximum likelihood - it is not&amp;nbsp;fixed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 15:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/448665#M23449</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-03-26T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Residual Plots (CURE plots)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/471212#M24539</link>
      <description>&lt;P&gt;Did you come up with a solution yet for CURE plot in Proc NLMIXED? Please share if you did.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 19:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cumulative-Residual-Plots-CURE-plots/m-p/471212#M24539</guid>
      <dc:creator>Unay13</dc:creator>
      <dc:date>2018-06-18T19:41:09Z</dc:date>
    </item>
  </channel>
</rss>

