<?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: Infinite Likelihood error Proc Mixed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159625#M263196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have sufficient data to estimate the variance components with tillage included, I would put them into the random statement.&amp;nbsp; However, I would be very surprised if the message "G matrix is not postive definite" or some such does not appear.&amp;nbsp; The reason for still including them is that they are part of the design, and the degrees of freedom for tests should reflect the "skeleton ANOVA" (see Stroup's &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt; for more on this).&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>Tue, 01 Jul 2014 11:27:14 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-07-01T11:27:14Z</dc:date>
    <item>
      <title>Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159621#M263192</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;&lt;/P&gt;&lt;P&gt;I am using proc mixed model, and i got the following warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: Stopped because of infinite likelihood.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: Output 'lsmeans' was not created.&amp;nbsp; Make sure that the output object name, label, or path&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is spelled correctly.&amp;nbsp; Also, verify that the appropriate procedure options are used to&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; produce the requested output object.&amp;nbsp; For example, verify that the NOPRINT option is not&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model is working fine with individual visit data but when I run the model with all the visits it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No duplicate records, no missing data. The same model worked for even lesser population.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Model Used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc mixed data=dsnin; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class treatment visit subjid ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model pchg =&amp;nbsp; treatment visit treatment *visit base/solution ddfm=satterthwaite;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; repeated visit/subject=subjid type=un;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans treatment *visit/cl alpha=0.05;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output lsmeans=means;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2014 21:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159621#M263192</guid>
      <dc:creator>vvk</dc:creator>
      <dc:date>2014-06-28T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159622#M263193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost certainly the infinte likelihood is due to duplicate records.&amp;nbsp; For each subjid, there can be only one record per "visit".&amp;nbsp; If the subjid is not unique within treatment, then this error will occur.&amp;nbsp; If that is the case, then change subject=subjid to subject=subjid*treatment, and all should be well.&amp;nbsp; Otherwise, you are going to have clean your data so that there are no duplicate records for visit.&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>Mon, 30 Jun 2014 13:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159622#M263193</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-30T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159623#M263194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve for your response. I will try that and check if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159623#M263194</guid>
      <dc:creator>vvk</dc:creator>
      <dc:date>2014-06-30T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159624#M263195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about error source in split-split plot design. I have combined two years of data as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class Year Rep Irrig Tillage Variety;&lt;/P&gt;&lt;P&gt;model HJul24 =&amp;nbsp; Irrig|Tillage|Variety;&lt;/P&gt;&lt;P&gt;Random&amp;nbsp; Rep(Year) Rep(Year Irrig)&amp;nbsp; Rep(Year Irrig Tillage);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irrig was the main plot, Tillage was the subplot, and Variety was the sub-subplot in three replicates. I would like to consider year in the random model. My question is; should I include the Tillage in the random model or not. As I will say in the paper;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5em;"&gt;Irrigation, tillage, variety, and their interaction were considered as fixed effects. Year, replicate, and their interaction with irrigation and tillage were considered as random effects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5em;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: 12pt; line-height: 1.5em;"&gt;Ahmed Attia&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159624#M263195</guid>
      <dc:creator>Ahmed_Attia</dc:creator>
      <dc:date>2014-07-01T02:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159625#M263196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have sufficient data to estimate the variance components with tillage included, I would put them into the random statement.&amp;nbsp; However, I would be very surprised if the message "G matrix is not postive definite" or some such does not appear.&amp;nbsp; The reason for still including them is that they are part of the design, and the degrees of freedom for tests should reflect the "skeleton ANOVA" (see Stroup's &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt; for more on this).&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>Tue, 01 Jul 2014 11:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/159625#M263196</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-01T11:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/716735#M263197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got the same problem with you, and I solved it by replacing the "type = un" to "type = cs".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Repeated&lt;/STRONG&gt; statement specifies the structure of the &lt;STRONG&gt;&lt;I&gt;R&lt;/I&gt;&lt;/STRONG&gt; matrix of residual variances and covariances.&lt;/P&gt;&lt;P&gt;Type here specifies the structure of &lt;STRONG&gt;&lt;I&gt;R .&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;You can dig into this problem more if you like.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&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>Thu, 04 Feb 2021 04:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/716735#M263197</guid>
      <dc:creator>QiQi_22</dc:creator>
      <dc:date>2021-02-04T04:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/726269#M263198</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;I am also getting this warning -&amp;nbsp;WARNING: Stopped because of infinite likelihood.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;I have tried different covariance structure as advised &lt;A title="here" href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_mixed_sect031.htm" target="_self"&gt;here.&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;And there is only one&amp;nbsp;&lt;SPAN&gt;observation row for every VIS from ID.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;Any advice from anybody will be very much appreciated.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=final;
by labparam;
class ID resp sex tx VIS;
model chg=base resp age sex tx VIS tx*VIS / s ddfm=kenwardroger;
lsmeans tx*VIS / cl;
repeated VIS / subject=ID type=ar(1);
/* repeated VIS / subject=ID type=vc;*/
/* repeated VIS / subject=ID type=cs;*/
/* repeated VIS / subject=ID type=un(1);*/
/* repeated VIS / subject=ID type=toep;*/
slice tx*VIS / sliceby=VIS pdiff cl;
run;.&amp;nbsp;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/726269#M263198</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2021-03-15T13:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/726976#M263199</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/367723"&gt;@QiQi_22&lt;/a&gt;&amp;nbsp; for your reply.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;I have already tried that but still getting the warning.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 04:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/726976#M263199</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2021-03-17T04:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764244#M263200</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;I have a similar error and tried "&lt;SPAN class="s1"&gt;repeated&lt;/SPAN&gt; time/&lt;SPAN class="s1"&gt;subject&lt;/SPAN&gt;=subj &lt;SPAN class="s1"&gt;group&lt;/SPAN&gt;=treatment &lt;SPAN class="s1"&gt;type&lt;/SPAN&gt;=ar(&lt;SPAN class="s2"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;);" and "&lt;SPAN class="s1"&gt;repeated&lt;/SPAN&gt;&amp;nbsp;treatment*time/&lt;SPAN class="s1"&gt;subject&lt;/SPAN&gt;=subj&amp;nbsp;&lt;SPAN class="s1"&gt;type&lt;/SPAN&gt;=ar(&lt;SPAN class="s2"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;);". But there is still an error. Would there be other reasons for this error?&lt;/P&gt;&lt;P&gt;Ada&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 15:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764244#M263200</guid>
      <dc:creator>ccwangxi</dc:creator>
      <dc:date>2021-08-26T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764455#M263201</link>
      <description>&lt;P&gt;Just a thought - it looks like your response variable is a change of some sort, and you have a continuous covariate base in the model.&amp;nbsp; If your response is change from base, it is possible that as iterations progress, the high correlation between these two leads to singularity of the matrix, which might be causing this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: how many iterations occur before the infinite likelihood error is reached? If it is immediate, then you DO have some sort of duplicate record in there.&amp;nbsp; Look at the cross-tabulation for sex*resp*tx*vis. The count in each cell should be equal to the number of unique IDs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other possibilities include age dependent missingness, base dependent missingness, and complete confounding of age and base,&amp;nbsp; I am kind of swinging in the dark here, so I am going to at_mention&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;who is one of the authors of the paper&amp;nbsp;&lt;A href="https://www.lexjansen.com/mwsug/2012/SA/MWSUG-2012-SA15.pdf" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Several examples of duplication that could be missed are given there, and a pretty strong case is made that only some sort of duplication leads to this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 13:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764455#M263201</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-27T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764477#M263202</link>
      <description>&lt;P&gt;What happens if you add the singular=1e-8 option in the MODEL statement in PROC MIXED?&lt;/P&gt;
&lt;P&gt;If that does not help, then I would need to have your data set to look into it further, as this type of issue is often data/model dependent.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/764477#M263202</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-08-27T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/766266#M263203</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Thank you so much for the instruction! You are right. The&amp;nbsp;&lt;SPAN&gt;infinite likelihood error occurred immediately, and there were 4 replicates. I did not discover this because I used the wrong keyword "nodup" rather than "&lt;/SPAN&gt;nodupkey"&amp;nbsp;&lt;SPAN&gt;in PROC SORT. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My new question is how to &lt;STRONG&gt;specify the variance-covariance structure of intensive longitudinal data&lt;/STRONG&gt;. I always start from the most saturated variance structure (unstructured RANDOM and simple RESIDUAL) and then simplify based on the dataset and the study (e.g.., whether AR(1) is reasonable). Would you have any recommended resources on this topic?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ada&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 21:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/766266#M263203</guid>
      <dc:creator>ccwangxi</dc:creator>
      <dc:date>2021-09-06T21:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/766389#M263204</link>
      <description>&lt;P&gt;I almost never look at the unstructured/Cholesky structure unless there are fewer than 5 timepoints, since most of the data I work with have a limited number of subjects.&amp;nbsp; Remember, 5 timepoints require estimation of 15 parameters.&amp;nbsp; If your data is "intense", say with 20 timepoints, you are talking 210 parameters.&amp;nbsp; Using a rule of thumb I came across in some R vignette, that would require roughly 2100 subjects to be able to get stable estimates (R side) or have a positive definite G matrix (G side).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I tend to think about the process that generates the data.&amp;nbsp; If you can exchange any two time points, then compound symmetry type covariance structures are good.&amp;nbsp; If there is some sort of correlation between errors, then the autoregressive or spatial structures are usually a better choice.&amp;nbsp; One thing is that if the data are unchanged and the errors in PROC MIXED are normal, you can use information criteria (AIC, AICc, BIC) to rank the models in order of retained information.&amp;nbsp; For generalized mixed models, it becomes more difficult, but as long as you deal with single parameter distributions, this method is well defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information, I recommend Walt Stroup's&amp;nbsp;&lt;EM&gt;Generalized Linear Mixed Models: Modern Concepts, Methods and Applications&lt;/EM&gt;, as well as SAS for Mixed Models, 3rd edition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/766389#M263204</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-07T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite Likelihood error Proc Mixed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/803817#M316523</link>
      <description>&lt;P&gt;Sorry to bump an old post, but adding&amp;nbsp;&lt;SPAN&gt;singular=1e-8 option&amp;nbsp;worked for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm working with a large multiyear agricultural dataset (30 years, 2 sites, 4&amp;nbsp; blocks, 4 levels treatment 1, 5 levels treatment 2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Spit plot design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I split the data into 4 subsets to make the analysis more manageable (sites analyzed separately, and then around 2004 there was a break in the data due to a summer fallow).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The models were much faster this way, and AR1 and ARH1 covariance structures remained options because there was no year gap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The random effects structure gets a little complicated (&lt;A href="https://link.springer.com/article/10.1007/s13593-021-00681-4" target="_blank"&gt;https://link.springer.com/article/10.1007/s13593-021-00681-4&lt;/A&gt;), but 3 of the 4 datasets ran very well with the same code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fourth dataset just would not run without the infinite likelihood error on iteration 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No duplicate records that I could find.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding&amp;nbsp;&amp;nbsp;singular=1e-8 got it to run, and the results look reasonable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infinite-Likelihood-error-Proc-Mixed/m-p/803817#M316523</guid>
      <dc:creator>Brendan42</dc:creator>
      <dc:date>2022-03-24T15:36:04Z</dc:date>
    </item>
  </channel>
</rss>

