<?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: How do I fit an equation? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-fit-an-equation/m-p/564700#M27858</link>
    <description>&lt;P&gt;Run NLMIXED with option trace to get debug info. The problem is related to cases where sigma=0. NLMIXED is trying to take the log of sigma and fails. You can get convergence by replacing sigma=0 by sigma=0.01.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With sigma=0.01, the results indicate that your model is overparameterized, likely because of the two terms involving sigma with different exponents. Just a guess.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jun 2019 21:46:05 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-06-08T21:46:05Z</dc:date>
    <item>
      <title>How do I fit an equation?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-fit-an-equation/m-p/564683#M27857</link>
      <description>&lt;P&gt;I have to a model&lt;/P&gt;&lt;P&gt;threshold = 100 -2*deltat + c1*sigma^a + c2*deltat^2 + c3*sigma^c * deltat^d&lt;/P&gt;&lt;P&gt;where I know 0&amp;lt;threshold&amp;lt;100 as it is in all my datapoints (&lt;A href="https://pastebin.com/3pYiNFf1" target="_blank" rel="noopener"&gt;https://pastebin.com/3pYiNFf1&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this I run the following code (and I am fully aware this approach is incredibly stupid/ridiculous but I can't think of anything better) using the nlmixed procedure with as model the binomial distribution with 100 trials, and succes chance hopefully threshold/100.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC NLMIXED data=BEP;&lt;BR /&gt;PARMS c1=-1, c2=0, c3=0, a=1, b=1, c=1, d=1;&lt;BR /&gt;p = (100 - 2*deltat + c1*sigma**(a) + c2*deltat**(b) + c3*sigma**(c) * deltat**(d))/100;&lt;BR /&gt;model threshold ~ binomial(100,p);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when running this I get no output and the log says&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasNote"&gt;NOTE: Execution error for observation 1.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Although I do get results if I remove the parameters a,b,c,d, I don't get any results when I include them.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;This was run using SAS university edition version 3.8&lt;/DIV&gt;</description>
      <pubDate>Sat, 08 Jun 2019 17:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-fit-an-equation/m-p/564683#M27857</guid>
      <dc:creator>Ajktulm</dc:creator>
      <dc:date>2019-06-08T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I fit an equation?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-fit-an-equation/m-p/564700#M27858</link>
      <description>&lt;P&gt;Run NLMIXED with option trace to get debug info. The problem is related to cases where sigma=0. NLMIXED is trying to take the log of sigma and fails. You can get convergence by replacing sigma=0 by sigma=0.01.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With sigma=0.01, the results indicate that your model is overparameterized, likely because of the two terms involving sigma with different exponents. Just a guess.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 21:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-fit-an-equation/m-p/564700#M27858</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-06-08T21:46:05Z</dc:date>
    </item>
  </channel>
</rss>

