<?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 Bent-stick model with proc nlin in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149625#M7879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've red an article on the response of pigs to increasing concentrations of isoleucine in their diet. The response was analysed with proc nlin. It is said in the article that they &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;modified the &lt;/SPAN&gt;classical broken-stick (or linear-plateau) model into a bentstick model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to program a broken-stick model but I really don't know how to do with a bent-stick model. In the article the bent-stick model is based on two line segments that are connected by a quadratic function, resulting in a smooth transition between both line segments. So it seems to be a modification of a broken stick model.ent_stick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one can help me please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Friedrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 15:45:44 GMT</pubDate>
    <dc:creator>MisterFred</dc:creator>
    <dc:date>2013-11-20T15:45:44Z</dc:date>
    <item>
      <title>Bent-stick model with proc nlin</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149625#M7879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've red an article on the response of pigs to increasing concentrations of isoleucine in their diet. The response was analysed with proc nlin. It is said in the article that they &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;modified the &lt;/SPAN&gt;classical broken-stick (or linear-plateau) model into a bentstick model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to program a broken-stick model but I really don't know how to do with a bent-stick model. In the article the bent-stick model is based on two line segments that are connected by a quadratic function, resulting in a smooth transition between both line segments. So it seems to be a modification of a broken stick model.ent_stick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one can help me please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Friedrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149625#M7879</guid>
      <dc:creator>MisterFred</dc:creator>
      <dc:date>2013-11-20T15:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bent-stick model with proc nlin</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149626#M7880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example 63.1 Segmented Model in the NLIN Procedure documentation will get you started.&amp;nbsp; This is a linear plateau following a quadratic.&amp;nbsp; What you want is linear-quadratic-linear.&amp;nbsp; Start by writing the expectation across all X, then apply the continuity and smoothness conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be better to fit a spline to the data, with four knots, corresponding to the two ends and the two join points, or a thin-plate spline that accommodates the design.&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>Wed, 20 Nov 2013 19:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149626#M7880</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-11-20T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bent-stick model with proc nlin</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149627#M7881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;A very good proc nlin example is in the following link&lt;/P&gt;&lt;P&gt;&lt;A href="http://people.stat.sfu.ca/~cschwarz/Stat-650/Notes/PDFbigbook-SAS/SAS-part019.pdf"&gt;Regression - hockey sticks, broken sticks, piecewise, change points&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 15:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149627#M7881</guid>
      <dc:creator>MohammadFayaz</dc:creator>
      <dc:date>2013-11-22T15:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bent-stick model with proc nlin</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149628#M7882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve and Mohammad, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for you answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the piecewise regression and applied Steve's advice (expectation across all X + continuity and smoothness).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've 3 equations : &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;when X&amp;lt;X1 Y=a1+b1X&lt;/LI&gt;&lt;LI&gt;when X1&amp;lt;X&amp;lt;X2 Y=a2+b2X+c2X²&lt;/LI&gt;&lt;LI&gt;when X&amp;gt;X2 Y= a3+b3X&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;Proc nlin data=Essai_segmentedLQL noitprint plots=(diagnostics fitplot);&lt;/P&gt;&lt;P&gt;parms a1=1 b1=1 b2=1 b3=1 c2=1 X1=10 X2=20;&lt;/P&gt;&lt;P&gt;if (X&amp;lt;=X1) then mean = a1+b1*X;&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;if (X&amp;gt;X1 AND X&amp;lt;=X2) then mean = a1+X1*(b1-b2)+b2*X+c2*(X*X-X1*X1);&lt;/P&gt;&lt;P&gt;else mean = a1+X1*(b1-b2)+X2*(b2-b3)+c2*(X2*X2-X1*X1)+b3*X;&lt;/P&gt;&lt;P&gt;model Y = mean;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work quite well. There's just an issue with the start parameters. I have to estimate graphically the breakpoints. It is not a problem with one set of data, but it is if I want to run several regression with quite different parameters values. But I think I can handle this.&lt;/P&gt;&lt;P&gt;Thank again for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Friedrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 13:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149628#M7882</guid>
      <dc:creator>MisterFred</dc:creator>
      <dc:date>2013-11-25T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bent-stick model with proc nlin</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149629#M7883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you write some macros for this ?&lt;/P&gt;&lt;P&gt;This paper may give you some ideas:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nesug.org/proceedings/nesug04/ap/ap04.pdf" title="http://www.nesug.org/proceedings/nesug04/ap/ap04.pdf"&gt;http://www.nesug.org/proceedings/nesug04/ap/ap04.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 13:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bent-stick-model-with-proc-nlin/m-p/149629#M7883</guid>
      <dc:creator>MohammadFayaz</dc:creator>
      <dc:date>2013-11-25T13:05:59Z</dc:date>
    </item>
  </channel>
</rss>

