<?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 Quadratic Models with Inputs that change X-Position of Vertex in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352200#M60153</link>
    <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a response variable that goes from 0 to 100% and following a quadratic function in response to a continuous variable. The vertex of which can only go up to 100%. The problem I'm having is that there's a nominal factor that can shift this function to the left and to the right. So far, I've filtered for responses to less than 80% to make the regression mostly linear (2nd order coefficients not having an effect) such that the nominal factor can be added to the fit model. I get estimates of the nominal factor that shift the quadratic function up and down but really the quadratic function is shifting to the left and to the right due to the nominal factor. How can I model this relationship in JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming my model looks something like this y_hat = (x-b_0)^2*b_1+(x-b_2)*b_3+b_4+error where b are regression estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lloyd_tripp_1-1611430278574.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29658iF090AADC565877DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lloyd_tripp_1-1611430278574.png" alt="lloyd_tripp_1-1611430278574.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Figure 1: Toy example of the situation. Where the blue line is the response to one level of the nominal factor. The red line is another response to a different level of the nominal factor.&amp;nbsp;&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, 09 Jun 2023 00:27:55 GMT</pubDate>
    <dc:creator>lloyd_tripp</dc:creator>
    <dc:date>2023-06-09T00:27:55Z</dc:date>
    <item>
      <title>Quadratic Models with Inputs that change X-Position of Vertex</title>
      <link>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352200#M60153</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a response variable that goes from 0 to 100% and following a quadratic function in response to a continuous variable. The vertex of which can only go up to 100%. The problem I'm having is that there's a nominal factor that can shift this function to the left and to the right. So far, I've filtered for responses to less than 80% to make the regression mostly linear (2nd order coefficients not having an effect) such that the nominal factor can be added to the fit model. I get estimates of the nominal factor that shift the quadratic function up and down but really the quadratic function is shifting to the left and to the right due to the nominal factor. How can I model this relationship in JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming my model looks something like this y_hat = (x-b_0)^2*b_1+(x-b_2)*b_3+b_4+error where b are regression estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lloyd_tripp_1-1611430278574.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29658iF090AADC565877DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lloyd_tripp_1-1611430278574.png" alt="lloyd_tripp_1-1611430278574.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Figure 1: Toy example of the situation. Where the blue line is the response to one level of the nominal factor. The red line is another response to a different level of the nominal factor.&amp;nbsp;&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, 09 Jun 2023 00:27:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352200#M60153</guid>
      <dc:creator>lloyd_tripp</dc:creator>
      <dc:date>2023-06-09T00:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Quadratic Models with Inputs that change X-Position of Vertex</title>
      <link>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352281#M60159</link>
      <description>&lt;P&gt;Interactions with the Nominal factor are the way to handle this, along with a more "traditional" quadratic polynomial.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought it might be easiest to show how to do this with an example, which I have attached. Your factors are X and NomX. The Y1 column has a simple quadratic. The "Y1 + 2" column is the same simple quadratic, but shifted two units along the X-axis. The Y column is a response that uses the Y1 quadratic if NomX is A and uses the "Y1 + 2" quadratic if NomX is B. This column mimics your situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Fit Model, your model would have these terms:&lt;/P&gt;
&lt;P&gt;X&lt;/P&gt;
&lt;P&gt;NomX&lt;/P&gt;
&lt;P&gt;X*NomX&lt;/P&gt;
&lt;P&gt;X*X&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have saved this model as a script. Notice that if the quadratic effect could change with the nominal X, then you would need the term X*X*NomX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NomX term will indicate how the intercept of the model changes when your nominal factor changes.&lt;/P&gt;
&lt;P&gt;The X*NomX term shows how the slope changes when your nominal factor changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you look at the models, you can see that the models are essentially:&lt;/P&gt;
&lt;P&gt;Y1-hat = 10 - 1*X*X&lt;/P&gt;
&lt;P&gt;(Y1+2)-hat = 6 + 4*X - 1*X*X. This is how a shifted quadratic form would look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, for the Y-hat model,&lt;/P&gt;
&lt;P&gt;if NomX = A&lt;/P&gt;
&lt;P&gt;Y-hat = 8 + 2 + 2*X - 2*X - 1*X*X = 10 - 1*X*X (which matches the Y1-hat model)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If NomX = B&lt;/P&gt;
&lt;P&gt;Y=hat = 8 - 2 + 2*X + 2*X - 1*X*X = 6 + 4*X - 1*X*X (which matches the (Y1+2)-hat model)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice how the shift affects the parameters. The shift of two units is captured by the parameter estimates for the terms involving NomX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 01:51:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352281#M60159</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-01-24T01:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Quadratic Models with Inputs that change X-Position of Vertex</title>
      <link>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352331#M60167</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3194"&gt;@Dan_Obermiller&lt;/a&gt;&amp;nbsp;is completely correct. &amp;nbsp;The quadratic effect is dependent on the nominal factor. &amp;nbsp;This, by definition, is an interaction. &amp;nbsp;Interesting because when you use JMP's built in macro (Response Surface) in the Fit Model platform, the quadratic-by-factor interactions are pooled into the error term. &amp;nbsp;This is why I always saturate the model to analyze first, if at all possible.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 15:32:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/352331#M60167</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2021-01-24T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Quadratic Models with Inputs that change X-Position of Vertex</title>
      <link>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/353331#M60282</link>
      <description>&lt;P&gt;Thanks Dan, I would have realized that the X*NomX interaction effect source would be required had I expanded out the polynomial model to standard form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:14:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Quadratic-Models-with-Inputs-that-change-X-Position-of-Vertex/m-p/353331#M60282</guid>
      <dc:creator>lloyd_tripp</dc:creator>
      <dc:date>2021-01-27T17:14:25Z</dc:date>
    </item>
  </channel>
</rss>

