<?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: Reporting x value when y approaches zero in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/421353#M67016</link>
    <description>&lt;P&gt;Maybe something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Sample data
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Negative Exponential.jmp");

// Fit a plausible model, and do inverse prediction for Y = 0.8 and 0.9
fc = dt &amp;lt;&amp;lt; Fit Curve(Y( :Y ), X( :X ), Fit Logistic 2P(Custom Inverse Prediction( Response( {0.8, 0.9} ))));

// Get the inverse predictions into a table
dtp = Report(fc)[TableBox(4)] &amp;lt;&amp;lt; makeDataTable;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Sep 2021 13:57:22 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2021-09-27T13:57:22Z</dc:date>
    <item>
      <title>Reporting x value when y approaches zero</title>
      <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/420412#M66921</link>
      <description>&lt;P&gt;I have multiple data sets similar to the one shown below where I would like to review the y values (in the graph shown this is "H2O pickup") and create a report out when these values approach zero. I would like to be able to set a threshold around this at a value close to zero. In the picture I have shown -0.0005 for the y value and the resulting x solution reported would be around a cycle time of 1066. Please let me know if more data or information is needed to answer this. Thanks!&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="thedellette_1-1632341694228.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36015i928F9FBD1EDC5E7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thedellette_1-1632341694228.png" alt="thedellette_1-1632341694228.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:57:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/420412#M66921</guid>
      <dc:creator>thedellette</dc:creator>
      <dc:date>2023-06-09T19:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting x value when y approaches zero</title>
      <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/420549#M66938</link>
      <description>&lt;P&gt;Probably the easiest way is to load up the non-linear platform under analyze --&amp;gt; specialized modeling. Fit a good model and then use the inverse prediction for your target value to get you CycleTime.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:15:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/420549#M66938</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-09-23T08:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting x value when y approaches zero</title>
      <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/421319#M67015</link>
      <description>&lt;P&gt;Thank you! I can save the inverse prediction to the data table but I do not know how to save this formula to a script so that I can solve for a specific "H2O pickup" value and output a CycleTime value. Do you know where I might figure out how to do that?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:54:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/421319#M67015</guid>
      <dc:creator>thedellette</dc:creator>
      <dc:date>2021-09-27T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting x value when y approaches zero</title>
      <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/421353#M67016</link>
      <description>&lt;P&gt;Maybe something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Sample data
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Negative Exponential.jmp");

// Fit a plausible model, and do inverse prediction for Y = 0.8 and 0.9
fc = dt &amp;lt;&amp;lt; Fit Curve(Y( :Y ), X( :X ), Fit Logistic 2P(Custom Inverse Prediction( Response( {0.8, 0.9} ))));

// Get the inverse predictions into a table
dtp = Report(fc)[TableBox(4)] &amp;lt;&amp;lt; makeDataTable;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:57:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/421353#M67016</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-09-27T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting x value when y approaches zero</title>
      <link>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/422043#M67102</link>
      <description>&lt;P&gt;Or a slight modification to Ians method where the equation and predicted values end up in your original table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Sample data
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Negative Exponential.jmp");

// Fit a plausible model, and do inverse prediction for Y = 0.8 and 0.9
fc = dt &amp;lt;&amp;lt; Fit Curve(Y( :Y ), X( :X ), Fit Logistic 2P(Save Prediction Formula));

// Add desired row
dt &amp;lt;&amp;lt; add row(1)
:X[nrows()] = 0.8;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Sep 2021 13:46:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reporting-x-value-when-y-approaches-zero/m-p/422043#M67102</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-09-29T13:46:29Z</dc:date>
    </item>
  </channel>
</rss>

