<?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: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832887#M41256</link>
    <description>&lt;P&gt;The default number of points used in the Gaussian quadrature method of integration in NLMIXED is 31.&amp;nbsp; An error like this generally means you don't have enough data to get started on the integration.&amp;nbsp; You have a couple of options. The first is to specify a smaller number of points using the QFAC= option.&amp;nbsp; In particular, if you set QFAC=1, then you are using a Laplace integration.&amp;nbsp; The second option is to steer away from Gaussian integration, using the METHOD= option.&amp;nbsp; I would suggest METHOD=FIRO, a first order method popularized by Beal and Sheiner for use in estimating population kinetics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 14:58:49 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2022-09-12T14:58:49Z</dc:date>
    <item>
      <title>ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832748#M41249</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fit nlmixed on the simulated data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data simulated;&lt;BR /&gt;call streaminit(9);&lt;BR /&gt;do subject =1 to 10;&lt;BR /&gt;kd = rand('lognormal', -6, 1.2);&lt;BR /&gt;do t = 1 to 10;&lt;BR /&gt;response=exp(-kd*t);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data simulated2;&lt;BR /&gt;set simulated;&lt;BR /&gt;drop kd;&lt;BR /&gt;if response&amp;lt;0 then delete;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc nlmixed data=simulated2 method=gauss;&lt;BR /&gt;parms kd=0.0004 delta=0.5 s2=2;&lt;BR /&gt;pred=exp(-kd*t);&lt;BR /&gt;model response~normal(pred, pred**(2*delta)*s2);&lt;BR /&gt;random kd ~ normal(1,2)&lt;BR /&gt;subject=subject;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Quadrature accuracy of 0.000100 could not be achieved with 31 points. The achieved&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;accuracy was 1.000000.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it might have to do with the "pred**(2*delta)*s2" in the model statement.&amp;nbsp;In the proc nlmixed approach, how is the variance typically estimated in the model statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the simulated data for kd, I have it as lognormally distributed but the only option I see in the proc nlmixed random statement is to use normal. Has anyone done anything similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts/help is much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 12:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832748#M41249</guid>
      <dc:creator>SR79</dc:creator>
      <dc:date>2022-09-11T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832752#M41250</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I get the error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: Quadrature accuracy of 0.000100 could not be achieved with 31 points. The achieved&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;accuracy was 1.000000.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it might have to do with the "pred**(2*delta)*s2" in the model statement.&amp;nbsp;In the proc nlmixed approach, how is the variance typically estimated in the model statement?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, this has more to do with the 31 data points than the model statement. But I don't have a lot of experience with NLMIXED.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296710"&gt;@SR79&lt;/a&gt; please, from now on, when you get an error in the log, show us the ENTIRE log for that PROC or for that DATA step. Do not show us errors disconnected from the code in the log.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 14:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832752#M41250</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-11T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832754#M41251</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was the only error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SR79_0-1662905201417.png" style="width: 508px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75133i05CA9A052DCF748A/image-dimensions/508x61?v=v2" width="508" height="61" role="button" title="SR79_0-1662905201417.png" alt="SR79_0-1662905201417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not clear why 31 is being mentioned regardless of any changes to the code. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 14:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832754#M41251</guid>
      <dc:creator>SR79</dc:creator>
      <dc:date>2022-09-11T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832755#M41252</link>
      <description>&lt;P&gt;Repeating:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;show us the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; &lt;/FONT&gt;log for that PROC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not show us errors disconnected from the code in the log.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 14:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832755#M41252</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-11T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832771#M41253</link>
      <description>&lt;P&gt;Log of an entire procedure means start with the PROC statement, include all of the code through the Run statement and all of the generated messages associated with the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is much better to copy the LOG as text, open a text box on the forum and paste that log. That way we can copy and edit or use to make comments/explanations from log. Retyping pictures is no-ones favorite activity.&lt;/P&gt;
&lt;P&gt;One reason we ask for the entire procedure is you might not believe the number of people who post "I submitted this code &amp;lt;code follows&amp;gt; and got this error" but after a dozen requests for the log when we finally get the log we find out the "code" posted was not what was submitted and generated the error(s). Sometimes the wrong data set is used for input, often one or more options/statements/variables is misspelled or missing, or extra variables are in the log not shown in the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 18:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832771#M41253</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-11T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Quadrature accuracy of 0.000100 could not be achieved .... PROC NLMIXED ERROR</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832887#M41256</link>
      <description>&lt;P&gt;The default number of points used in the Gaussian quadrature method of integration in NLMIXED is 31.&amp;nbsp; An error like this generally means you don't have enough data to get started on the integration.&amp;nbsp; You have a couple of options. The first is to specify a smaller number of points using the QFAC= option.&amp;nbsp; In particular, if you set QFAC=1, then you are using a Laplace integration.&amp;nbsp; The second option is to steer away from Gaussian integration, using the METHOD= option.&amp;nbsp; I would suggest METHOD=FIRO, a first order method popularized by Beal and Sheiner for use in estimating population kinetics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 14:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Quadrature-accuracy-of-0-000100-could-not-be-achieved-PROC/m-p/832887#M41256</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-09-12T14:58:49Z</dc:date>
    </item>
  </channel>
</rss>

