<?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 Help on linear-plateau regression model in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120392#M33185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we want to use this model to calculate the X threshold where Y begin to decline, with conidence interval.&lt;/P&gt;&lt;P&gt;The attached is out data.&lt;/P&gt;&lt;P&gt;who has the procedure? could ou send me a copy? thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 01:24:46 GMT</pubDate>
    <dc:creator>sysmars</dc:creator>
    <dc:date>2013-06-27T01:24:46Z</dc:date>
    <item>
      <title>Help on linear-plateau regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120392#M33185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we want to use this model to calculate the X threshold where Y begin to decline, with conidence interval.&lt;/P&gt;&lt;P&gt;The attached is out data.&lt;/P&gt;&lt;P&gt;who has the procedure? could ou send me a copy? thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 01:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120392#M33185</guid>
      <dc:creator>sysmars</dc:creator>
      <dc:date>2013-06-27T01:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help on linear-plateau regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120393#M33186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carefully look at the documentation for PROC NLIN, especially Example 63.1 Segmented model.&amp;nbsp; This fits a quadratic up to an unknown join point, followed by a plateau.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'Quadratic Model with Plateau';&lt;/P&gt;&lt;P&gt;proc nlin data=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parms alpha=.45 beta=.05 gamma=-.0025;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; x0 = -.5*beta / gamma;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if (x &amp;lt; x0) then &lt;/P&gt;&lt;P&gt;&amp;nbsp; mean = alpha + beta*x + gamma*x*x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else mean = alpha + beta*x0 + gamma*x0*x0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y = mean;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _obs_=1 and _iter_ =. then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; plateau =alpha + beta*x0 + gamma*x0*x0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put / x0= plateau= ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out=b predicted=yp; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this gets you started on what you wish to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120393#M33186</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-27T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help on linear-plateau regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120394#M33187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;Thanks so much Steve, and also, does below procedure can also be used for our data? what the difference between this 2 procedures?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;DATA a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;INPUT met gain @@;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;DATALINES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier10PitchBT-Roman','serif'; font-size: 9pt;"&gt;80 102 85 115 90 125 95 133 100 140&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier10PitchBT-Roman','serif'; font-size: 9pt;"&gt;105 141 110 142 115 140 120 142&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier10PitchBT-Roman','serif'; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;PROC NLIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;PARMS a = 102 b = 2.7 c = -0.04;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;x = met-80;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;x0 = -.5*b / c;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;IF x &amp;lt; x0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;MODEL gain = a+b*x+c*x*x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;MODEL gain = a+b*x0+c*x0*x0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;IF _obs_=1 and _iter_ =. THEN DO;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;plateau = a+b*x0+c*x0*x0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;x0 = x0+80;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;PUT / x0 = plateau= ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;and another question is, how to make a graph like below, thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;IMG alt="images.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/3807_images.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 06:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-on-linear-plateau-regression-model/m-p/120394#M33187</guid>
      <dc:creator>sysmars</dc:creator>
      <dc:date>2013-06-28T06:09:34Z</dc:date>
    </item>
  </channel>
</rss>

