<?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 nonlinear piecewise regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635142#M30419</link>
    <description>&lt;P&gt;Hi! I have the data below and I was applied the linear regression (piecewise regression), I wonder if I can apply the piecewise nonlinear regression by SAS.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;30 1 &lt;BR /&gt;26 2&lt;BR /&gt;39 3 &lt;BR /&gt;44 4 &lt;BR /&gt;35 5     &lt;BR /&gt;20 6 &lt;BR /&gt;27 7 &lt;BR /&gt;67 8 &lt;BR /&gt;25 9 &lt;BR /&gt;39 10 &lt;BR /&gt;69 11   &lt;BR /&gt;74 12 &lt;BR /&gt;45 13 &lt;BR /&gt;41 14 &lt;BR /&gt;50 15 &lt;BR /&gt;67 16 &lt;BR /&gt;55 17   &lt;BR /&gt;77 18 &lt;BR /&gt;41 19 &lt;BR /&gt;38 20&lt;BR /&gt;38 21 &lt;BR /&gt;46 22 &lt;BR /&gt;45 23   &lt;BR /&gt;62 24  &lt;BR /&gt;60 25  &lt;BR /&gt;62 26 &lt;BR /&gt;49 27 &lt;BR /&gt;60 28&lt;BR /&gt;78 29         &lt;BR /&gt;69 30      &lt;BR /&gt;64 31 &lt;BR /&gt;86 32&lt;BR /&gt;68 33 &lt;BR /&gt;53 34 &lt;BR /&gt;59 35 &lt;BR /&gt;56 36 &lt;BR /&gt;68 37 &lt;BR /&gt;57 38 &lt;BR /&gt;59 39 &lt;BR /&gt;101 40 &lt;BR /&gt;63 41&lt;BR /&gt;90 42 &lt;BR /&gt;92 43 &lt;BR /&gt;64 44      &lt;BR /&gt;77 45 &lt;BR /&gt;69 46&lt;BR /&gt;82 47 &lt;BR /&gt;70 48 &lt;BR /&gt;63 49 &lt;BR /&gt;66 50  &lt;BR /&gt;78 51 &lt;BR /&gt;94 52 &lt;BR /&gt;88 53 &lt;BR /&gt;62 54 &lt;BR /&gt;77 55 &lt;BR /&gt;92 56 &lt;BR /&gt;76 57 &lt;BR /&gt;55 58 &lt;BR /&gt;70 59 &lt;BR /&gt;54 60 &lt;BR /&gt;76 61 &lt;BR /&gt;58 62 &lt;BR /&gt;58 63&lt;BR /&gt;79 64 &lt;BR /&gt;77 65 &lt;BR /&gt;79 66 &lt;/PRE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linear regression plot_60.PNG" style="width: 695px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37408i0B2E3F5E682512DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="linear regression plot_60.PNG" alt="linear regression plot_60.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 20:44:29 GMT</pubDate>
    <dc:creator>esraa1</dc:creator>
    <dc:date>2020-03-26T20:44:29Z</dc:date>
    <item>
      <title>nonlinear piecewise regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635142#M30419</link>
      <description>&lt;P&gt;Hi! I have the data below and I was applied the linear regression (piecewise regression), I wonder if I can apply the piecewise nonlinear regression by SAS.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;30 1 &lt;BR /&gt;26 2&lt;BR /&gt;39 3 &lt;BR /&gt;44 4 &lt;BR /&gt;35 5     &lt;BR /&gt;20 6 &lt;BR /&gt;27 7 &lt;BR /&gt;67 8 &lt;BR /&gt;25 9 &lt;BR /&gt;39 10 &lt;BR /&gt;69 11   &lt;BR /&gt;74 12 &lt;BR /&gt;45 13 &lt;BR /&gt;41 14 &lt;BR /&gt;50 15 &lt;BR /&gt;67 16 &lt;BR /&gt;55 17   &lt;BR /&gt;77 18 &lt;BR /&gt;41 19 &lt;BR /&gt;38 20&lt;BR /&gt;38 21 &lt;BR /&gt;46 22 &lt;BR /&gt;45 23   &lt;BR /&gt;62 24  &lt;BR /&gt;60 25  &lt;BR /&gt;62 26 &lt;BR /&gt;49 27 &lt;BR /&gt;60 28&lt;BR /&gt;78 29         &lt;BR /&gt;69 30      &lt;BR /&gt;64 31 &lt;BR /&gt;86 32&lt;BR /&gt;68 33 &lt;BR /&gt;53 34 &lt;BR /&gt;59 35 &lt;BR /&gt;56 36 &lt;BR /&gt;68 37 &lt;BR /&gt;57 38 &lt;BR /&gt;59 39 &lt;BR /&gt;101 40 &lt;BR /&gt;63 41&lt;BR /&gt;90 42 &lt;BR /&gt;92 43 &lt;BR /&gt;64 44      &lt;BR /&gt;77 45 &lt;BR /&gt;69 46&lt;BR /&gt;82 47 &lt;BR /&gt;70 48 &lt;BR /&gt;63 49 &lt;BR /&gt;66 50  &lt;BR /&gt;78 51 &lt;BR /&gt;94 52 &lt;BR /&gt;88 53 &lt;BR /&gt;62 54 &lt;BR /&gt;77 55 &lt;BR /&gt;92 56 &lt;BR /&gt;76 57 &lt;BR /&gt;55 58 &lt;BR /&gt;70 59 &lt;BR /&gt;54 60 &lt;BR /&gt;76 61 &lt;BR /&gt;58 62 &lt;BR /&gt;58 63&lt;BR /&gt;79 64 &lt;BR /&gt;77 65 &lt;BR /&gt;79 66 &lt;/PRE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linear regression plot_60.PNG" style="width: 695px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37408i0B2E3F5E682512DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="linear regression plot_60.PNG" alt="linear regression plot_60.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 20:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635142#M30419</guid>
      <dc:creator>esraa1</dc:creator>
      <dc:date>2020-03-26T20:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear piecewise regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635166#M30420</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlin_examples01.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlin_examples01.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Mar 2020 22:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635166#M30420</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-26T22:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear piecewise regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635272#M30421</link>
      <description>&lt;P&gt;It looks like you need Forecast Model (SAS/ETS) .&lt;BR /&gt;Try post it at Forecast Forum .&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; may have some thought .&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635272#M30421</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-27T11:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: nonlinear piecewise regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635287#M30422</link>
      <description>&lt;P&gt;This is a continuation of &lt;A href="https://communities.sas.com/t5/Graphics-Programming/interrupted-time-series/m-p/633881" target="_self"&gt;a previous thread&lt;/A&gt;, but this time the OP is asking for nonlinear regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say "nonlinear regression," but I suspect you mean either polynomial regression (fit a quadratic or cubic curve) or nonparametric regression (fit a smooth curve). Both can be accomplished using the same tip you got earlier:&amp;nbsp;In PROC SGPLOT&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;use the REG statement and the DEGREE=3 option to fit a cubic polynomial to the data.&lt;/LI&gt;
&lt;LI&gt;use the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0j1n6w6psxa44n12vw6vh4qpl5y.htm&amp;amp;locale=en" target="_self"&gt;LOESS statement&lt;/A&gt; to fit a smooth curve to the data.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here is a link to the SGPLOT documentation about &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p0e254y1nmv2fjn1t3jybtamodjp.htm&amp;amp;locale=en#" target="_self"&gt;fitting curves in PROC SGPLOT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/nonlinear-piecewise-regression/m-p/635287#M30422</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-27T11:34:49Z</dc:date>
    </item>
  </channel>
</rss>

