<?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 Re: Fit Y by X function: return equation to JMP sheet in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452296#M69900</link>
    <description>&lt;P&gt;Thanks so much for the help. I'll definitely look into that Profiler option as well. What I have to do will have to be done hundreds of times, so maybe the Profiler will have a feature to just apply the equation from the data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I feel like I'm getting so close to figuring this out, it's very exciting to learn more about JMP!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 04:37:17 GMT</pubDate>
    <dc:creator>ndowidar</dc:creator>
    <dc:date>2022-01-19T04:37:17Z</dc:date>
    <item>
      <title>Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452248#M69895</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'd like to use my data to identify the concentration at say 1x that would be the optimal concentration. So I'm trying to use the JMP Fit Y by X feature to find the equation and how it relates to the two variables I have. The Fit Y by X feature works great but now I'd like to return the equation and values to the data table. Since the data I have returns these values 100s of times, is there an easy way of returning these to the data table so that I can actually use the equations to calculate the optimal concentrations I'm after?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks so much for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Using JMP 16&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 21:27:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452248#M69895</guid>
      <dc:creator>ndowidar</dc:creator>
      <dc:date>2022-01-18T21:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452263#M69896</link>
      <description>&lt;P&gt;You can save the prediction formula of any data model you fit in a JMP report.&amp;nbsp; To do with Fit Y by X, you would first run the platform with your X and Y variables, then fit the model you want to fit (ex Fit Line), then under the graph you will see a red triangle next to the legend of the Fitted Models.&amp;nbsp; Click that triangle and choose "Save Predicteds".&amp;nbsp; That will create a formula column in your data table of that model.&lt;BR /&gt;Here is an example script of that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ) );
obj &amp;lt;&amp;lt; Fit Polynomial( 1, {Save Predicteds} );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jan 2022 22:07:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452263#M69896</guid>
      <dc:creator>Mark_Zwald</dc:creator>
      <dc:date>2022-01-18T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452264#M69897</link>
      <description>&lt;P&gt;The &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/fitting-menu-options.shtml" target="_self"&gt;Save Predicteds&lt;/A&gt;&amp;nbsp;command from the red triangle menu will save a Formula column to the data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-01-18_17-02-51.334.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39097i2B7D4E9FF591E652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-01-18_17-02-51.334.png" alt="2022-01-18_17-02-51.334.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you're looking for optimization, don't overlook the &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/introduction-to-profilers.shtml#ww303045" target="_self"&gt;Profiler&lt;/A&gt;. It is tailor-made for that and will work with the formula you save from Fit Y by X.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 22:08:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452264#M69897</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-01-18T22:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452295#M69899</link>
      <description>&lt;P&gt;Thank you so much for the help! I see now that I can save the equation as a formula. I can go down through the graphs one at a time and save the predictions and that works great. I realize though that I should probably learn how to write a script to do that instead! I'd have to do this a few hundred times.... so thank you so much for that script example. Maybe I can use it by swapping the variables that are in my table...? I'll definitely give a shot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've never written a script before. Would I just open a new script and try it out or is there somewhere in the column that I can add the script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you have any other suggestions, I'd appreciate the guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 04:33:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452295#M69899</guid>
      <dc:creator>ndowidar</dc:creator>
      <dc:date>2022-01-19T04:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452296#M69900</link>
      <description>&lt;P&gt;Thanks so much for the help. I'll definitely look into that Profiler option as well. What I have to do will have to be done hundreds of times, so maybe the Profiler will have a feature to just apply the equation from the data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I feel like I'm getting so close to figuring this out, it's very exciting to learn more about JMP!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 04:37:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452296#M69900</guid>
      <dc:creator>ndowidar</dc:creator>
      <dc:date>2022-01-19T04:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Y by X function: return equation to JMP sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452385#M69912</link>
      <description>&lt;P&gt;I found a way to add the script as a formula for a column. I followed these steps but it's returning an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;.If I do that, I think I have to remove the first line of the script since it's a formula in the the window itself; i.e there's no need to write a function to open the data set, correct?&lt;/P&gt;&lt;P&gt;Now all I'd have in the formula box are the two lines of code:&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ) );
obj &amp;lt;&amp;lt; Fit Polynomial( 1, {Save Predicteds} );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;2.&lt;/STRONG&gt;Then all I should have to do is swap the Y and X variables with the ones in my column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;3.&lt;/STRONG&gt; Is the Fit Polynomial equivalen to the Fit Line option or should I re-write that at "Fit Line".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Result:&lt;/STRONG&gt; After I did that I got an error: Send expects scriptable object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fit-Y-by-X-function-return-equation-to-JMP-sheet/m-p/452385#M69912</guid>
      <dc:creator>ndowidar</dc:creator>
      <dc:date>2022-01-19T15:44:33Z</dc:date>
    </item>
  </channel>
</rss>

