<?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: Is there nonlinear fit bug in jmp 16.0? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442754#M69099</link>
    <description>&lt;P&gt;Update/solved?: it seems if I rename the table variables Max and k to e.g. Max2 and k2 &lt;EM&gt;after&lt;/EM&gt; they have been created by the script, nonlinear fit works as expected/does not lock up, &lt;EM&gt;and&lt;/EM&gt; are still being set to estimated parameter values by the script. I have no idea why.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 15:48:44 GMT</pubDate>
    <dc:creator>Ake</dc:creator>
    <dc:date>2021-12-06T15:48:44Z</dc:date>
    <item>
      <title>Is there nonlinear fit bug in jmp 16.0?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442716#M69098</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a script (thanks peng_liu) that puts the parameter estimates Max and k from nonlinear fit into table variables with the same names, which I planned to use in further calculation.&amp;nbsp; It seems creating the table variables makes the nonlinear fit plot stall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- the first time the script is run, the table variables Max and k are created from the parameters Max and k from nonlinear fit. If already existing they are just set to new values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- the nonlinear fit plot is so far working as excepted, with the line of fit moving when I manually adjust the parameters Max or k in the nonlinear window&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- when the script is run &lt;EM&gt;after&lt;/EM&gt; the table variables have been created, the nonlinear fit plot&amp;nbsp;gets stuck/static, and there is no reaction when manually adjusting the parameters Max or k&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- when I remove the table variables&amp;nbsp;Max and k, a new run of the script creates a functioning nonlinear fit again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What to do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:41:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442716#M69098</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2023-06-10T23:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there nonlinear fit bug in jmp 16.0?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442754#M69099</link>
      <description>&lt;P&gt;Update/solved?: it seems if I rename the table variables Max and k to e.g. Max2 and k2 &lt;EM&gt;after&lt;/EM&gt; they have been created by the script, nonlinear fit works as expected/does not lock up, &lt;EM&gt;and&lt;/EM&gt; are still being set to estimated parameter values by the script. I have no idea why.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:48:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442754#M69099</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2021-12-06T15:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there nonlinear fit bug in jmp 16.0?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442758#M69100</link>
      <description>&lt;P&gt;Update2: when I save, close and open up the data table again, the script once again creates Max and k (disregarding the renamed Max2 and k2), and the problem with the locked up nonlinear fit is back.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:56:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/442758#M69100</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2021-12-06T15:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there nonlinear fit bug in jmp 16.0?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/443099#M69122</link>
      <description>&lt;P&gt;I believe the cause is due to "scoping", a programming jargon. So in this case, I don't think it is a solution for you by saving parameter estimates as table variables using the &lt;STRONG&gt;exact same&lt;/STRONG&gt; names.&lt;/P&gt;
&lt;P&gt;By scoping, the dynamic plot that you refer to has an "evaluation environment", which has two variables with the same name "Max" and "k". To see it, right click the plot, select "Customize", then select "Current Model Fit". You will see a formula, which uses "Max" and "k". Every time, when you click the sliders to change values of "Max" and "k", the program updates those values and re-evaluate the function. However, there is another set of "Max" and "k", which is in data table's "evaluation environment", which are not updated. Unfortunately, due to evaluation precedence, the formula sees them first and use them, even the set got updated is somewhere close-by. That explains why the plot does not change.&lt;/P&gt;
&lt;P&gt;The only thing I can think of is to use either a prefix or postfix for the table variable names, or something that is easy for you to recognize, and variable names won't collide.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:09:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-nonlinear-fit-bug-in-jmp-16-0/m-p/443099#M69122</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2021-12-07T17:09:48Z</dc:date>
    </item>
  </channel>
</rss>

