<?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: mixed model warning message in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99246#M27911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, Steve,&lt;/P&gt;&lt;P&gt;Thanks a lot!&amp;nbsp; It really works with the method=laplace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 21:01:24 GMT</pubDate>
    <dc:creator>twotwotwo</dc:creator>
    <dc:date>2013-02-06T21:01:24Z</dc:date>
    <item>
      <title>mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99242#M27907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all, &lt;/P&gt;&lt;P&gt;I want to find out the correlation between two variables&lt;BR /&gt;(smoke and disease) by fitting a mixed model.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Here is my code: &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 12pt; background: white; font-family: 'Courier New';"&gt;proc &lt;/STRONG&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;&lt;STRONG style="color: navy; font-size: 12pt; background: white; font-family: 'Courier New';"&gt;mixed&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;=skin1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;class &lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;patient_id family_id smoke;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;model &lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;disease=smoke/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;htype&lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 12pt; background: white; font-family: 'Courier New';"&gt;3 &lt;/STRONG&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;ddfm&lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;=bw &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;s&lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;random &lt;/SPAN&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;patient_id(family_id);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 12pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 12pt;"&gt;However, I got a warning message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="font-family: 'Arial','sans-serif';"&gt;WARNING: Stopped because of too many likelihood evaluations.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;And the output did not give me the p-value.&amp;nbsp; How can I adjust the code to get the p-value?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 21:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99242#M27907</guid>
      <dc:creator>twotwotwo</dc:creator>
      <dc:date>2013-02-05T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99243#M27908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To increase the number of likelihood evaluations (and most likely the number of likelihood iterations), you will need to add the following to the proc mixed line:&amp;nbsp; maxiter=1000 maxfunc=5000.&amp;nbsp; Those values should provide a good start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be some other issues.&amp;nbsp; First, what type of variable is disease?&amp;nbsp; If it is binary, then proc mixed is not the right approach.&amp;nbsp; Check the documentation for PROC GLIMMIX, to use a generalized mixed model.&amp;nbsp; Second, are there multiple observations per patient_id?&amp;nbsp; If there are, then the random statement is meaningful, but if there is only one observation per patient_id, then the random statement should most likely be replaced with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;random family_id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all of the issues I brought up are applicable (binary response, single obs per patient_id), I would use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=skin1 method=quad;&lt;/P&gt;&lt;P&gt;class family_id smoke;&lt;/P&gt;&lt;P&gt;model disease=smoke/solution dist=binary;&lt;/P&gt;&lt;P&gt;random intercept/subject=family_id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99243#M27908</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-06T15:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99244#M27909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, Steve,&lt;/P&gt;&lt;P&gt;Thanks for your reply!&amp;nbsp; It really works for most of the cases.&amp;nbsp; You are very right for most of the assumptions, except the binary response.&amp;nbsp; I have either category response variable or continuous variables.&amp;nbsp; This model works perfect for the category response variable, in which cases I set dist=mult.&amp;nbsp; However, while I set dist=normal for the continuous variables, there is always some warning message pop out:&lt;/P&gt;&lt;P&gt;ERROR: Quadrature accuracy of 0.000100 could not be achieved with 31 points. The achieved accuracy was 0.001128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to solve this problem?&amp;nbsp; Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 19:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99244#M27909</guid>
      <dc:creator>twotwotwo</dc:creator>
      <dc:date>2013-02-06T19:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99245#M27910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the best approach would be to change to the Laplace expansion, rather than using adaptive quadrature for the continuous variables.&amp;nbsp; Change from method=quad to method=laplace, and see how things progress.&amp;nbsp; If that doesn't work, we'll need to get into the options for quad, and that just seems messy to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going on is that GLIMMIX uses an adaptive quadrature algorithm to resolve an integral describing the likelihood, and it needs more support points for the interpolation.&amp;nbsp; However, the number of points available depends a lot on the design and data, so rather than saying try method=quad(qmax=63) or method=quad(qmax=127) which would a) get around the problem of accuracy at the expense of b)greatly increased run time, I would drop back to the Laplace approximation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99245#M27910</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-06T20:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99246#M27911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, Steve,&lt;/P&gt;&lt;P&gt;Thanks a lot!&amp;nbsp; It really works with the method=laplace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 21:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99246#M27911</guid>
      <dc:creator>twotwotwo</dc:creator>
      <dc:date>2013-02-06T21:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: mixed model warning message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99247#M27912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please vote me an answer thingy.&amp;nbsp; Beg, beg, beg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 13:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/mixed-model-warning-message/m-p/99247#M27912</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-07T13:15:02Z</dc:date>
    </item>
  </channel>
</rss>

