<?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 least squares and exponential fitting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193794#M41449</link>
    <description>&lt;P&gt;I am looking to fit Y ~ 1-exp{-[C1*(x/Xmax)^1+.......CN*(x/Xmax)^N]}. The order could be anywhere between 6 to 12 (max value of N). But before generating the fit, I need to estimate the coefficient using modified LSQ. I looked at the exponential fit (analyze fit Y--&amp;gt;X) and tried to enter a formulae but I do not want to directly fit the exponential curve, rather I want to estimate the best fit coefficients subect to some upper bound constraints due to the strictly monotically increasing nature of Y. . Essentially the closest I could find that represents my model&amp;nbsp; is&amp;nbsp;&lt;A href="https://www.mathworks.com/help/optim/ug/lsqlin.html" target="_blank"&gt;https://www.mathworks.com/help/optim/ug/lsqlin.html&lt;/A&gt;&amp;nbsp;. Looks like a 2 step process with the LSQ s.t. linear constraints, followed by the actual exponential fit. Not sure if there is a 2 step or a straightshot approach for the fit for a given upper bound on the C1..CN.&lt;/P&gt;&lt;P&gt;Any pointers would be super helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sat, 20 Apr 2019 05:17:21 GMT</pubDate>
    <dc:creator>theseventhhill</dc:creator>
    <dc:date>2019-04-20T05:17:21Z</dc:date>
    <item>
      <title>Constrained least squares and exponential fitting</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193794#M41449</link>
      <description>&lt;P&gt;I am looking to fit Y ~ 1-exp{-[C1*(x/Xmax)^1+.......CN*(x/Xmax)^N]}. The order could be anywhere between 6 to 12 (max value of N). But before generating the fit, I need to estimate the coefficient using modified LSQ. I looked at the exponential fit (analyze fit Y--&amp;gt;X) and tried to enter a formulae but I do not want to directly fit the exponential curve, rather I want to estimate the best fit coefficients subect to some upper bound constraints due to the strictly monotically increasing nature of Y. . Essentially the closest I could find that represents my model&amp;nbsp; is&amp;nbsp;&lt;A href="https://www.mathworks.com/help/optim/ug/lsqlin.html" target="_blank"&gt;https://www.mathworks.com/help/optim/ug/lsqlin.html&lt;/A&gt;&amp;nbsp;. Looks like a 2 step process with the LSQ s.t. linear constraints, followed by the actual exponential fit. Not sure if there is a 2 step or a straightshot approach for the fit for a given upper bound on the C1..CN.&lt;/P&gt;&lt;P&gt;Any pointers would be super helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 05:17:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193794#M41449</guid>
      <dc:creator>theseventhhill</dc:creator>
      <dc:date>2019-04-20T05:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained least squares and exponential fitting</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193814#M41453</link>
      <description>&lt;P&gt;Can you linearize the relation with logs: &amp;nbsp;-Log( 1 - Y ) = c1*(x/Xmax) + c2*(x/Xmax)^2 + ... + cN*(x/Xmax)^N ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(This way might be invalid, depending on how the errors contribute to the original expression.)&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 11:55:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193814#M41453</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-04-20T11:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained least squares and exponential fitting</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193860#M41470</link>
      <description>&lt;P&gt;I tried it but the estimated coefficients are off compared to some of the references I have from literature Maybe I am missing some bounds or constraints have not been entered properly. Will try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I also tried to add the custom model to the library as outlined here&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/14-2/create-a-formula-using-the-model-library.shtml" target="_blank"&gt;https://www.jmp.com/support/help/14-2/create-a-formula-using-the-model-library.shtml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but getting I/O error. I have admin rights not sure why this is happening. Is there any "edit" or "user input" mode that would allow me to add my nonlinear model to the library?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 18:47:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193860#M41470</guid>
      <dc:creator>theseventhhill</dc:creator>
      <dc:date>2019-04-20T18:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Constrained least squares and exponential fitting</title>
      <link>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193862#M41471</link>
      <description>&lt;P&gt;The estimates will be in the log space, not the original dimensions. Would that difference account for the unexpected results? Also, these results were not intended to be the best estimates but serve only as the initial values for the parameters before fitting the data with the Nonlinear platform. You must back-transform the starting values with Exp() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know about I/O error. Is it possible&amp;nbsp;that the script file is locked?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest making your custom model manually / interactively first. That is, define the model first as a column formula. This way will demonstrate that such a model is feasible. The Model Library is only one way to fit a custom model. It is not required. This way will also provide the correct expression if you decide later to include it in the Model Library.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 11:49:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Constrained-least-squares-and-exponential-fitting/m-p/193862#M41471</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-04-21T11:49:09Z</dc:date>
    </item>
  </channel>
</rss>

