<?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 Constrained linear model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Constrained-linear-model/m-p/563799#M77656</link>
    <description>&lt;P&gt;How can I constrain the range of coefficients of variables in a multi-linear model?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 00:56:37 GMT</pubDate>
    <dc:creator>Sincyp</dc:creator>
    <dc:date>2023-06-09T00:56:37Z</dc:date>
    <item>
      <title>Constrained linear model</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-linear-model/m-p/563799#M77656</link>
      <description>&lt;P&gt;How can I constrain the range of coefficients of variables in a multi-linear model?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:56:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-linear-model/m-p/563799#M77656</guid>
      <dc:creator>Sincyp</dc:creator>
      <dc:date>2023-06-09T00:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained linear model</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-linear-model/m-p/564282#M77678</link>
      <description>&lt;P&gt;It is difficult to answer your question without any information about your problem. Generally, though, the fitting platforms in JMP for linear models do not use constraints other than the shrinkage techniques in Analyze &amp;gt; Fit Model &amp;gt; Generalized Regression such as ridge regression or LASSO..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/nonlinear-regression.shtml#" target="_self"&gt;Nonlinear&lt;/A&gt; platform and define the linear model with indicator functions that switch coefficients off (set to 0) if they exceed the desired range. The expression would be of the form&amp;nbsp;&lt;STRONG&gt;beta0 + (lo &amp;lt; beta1 &amp;lt; hi)*beta1*X&lt;/STRONG&gt; but I do not know about convergence in such a model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example illustrates the approach using &lt;STRONG&gt;weight&lt;/STRONG&gt; versus &lt;STRONG&gt;height&lt;/STRONG&gt; in the Big Class data set.&amp;nbsp;Define the model as a column formula in a new data column: I wanted to constrain the slope to 3.5-4.0 in this example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 674px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46863i1E187B9DB551A4AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select &lt;STRONG&gt;Analyze &amp;gt; Specialized Modeling &amp;gt; Nonlinear&lt;/STRONG&gt; and complete the launch dialog like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="launch.PNG" style="width: 622px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46864i1E9479DA118638C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="launch.PNG" alt="launch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; and make sure that all the criteria are correct before clicking Go.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nonliner.PNG" style="width: 411px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46865i3CE72AEADBFD117A/image-size/large?v=v2&amp;amp;px=999" role="button" title="nonliner.PNG" alt="nonliner.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the equivalent fit using Bivariate.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bivariate.PNG" style="width: 409px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46866iF87035EB26C36612/image-size/large?v=v2&amp;amp;px=999" role="button" title="bivariate.PNG" alt="bivariate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:07:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-linear-model/m-p/564282#M77678</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-11-03T14:07:21Z</dc:date>
    </item>
  </channel>
</rss>

