<?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 get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936244#M46681</link>
    <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;As suggested by Jil, I have used the following code:&lt;BR /&gt;proc mixed data=FFRgroup ;&lt;BR /&gt;class factorA factorB factorC  groupA groupB groupC repA repB repC;&lt;BR /&gt;model yield= groupA | groupB / ddfm=satterthwaite;&lt;BR /&gt;random int factorA factorB factorA*factorB/subject=factorC v; &lt;BR /&gt;lsmeans groupA | groupB   / pdiff cl alpha=0.05 ;&lt;BR /&gt;Title "FFR Model";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And the results are as follows:&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jul 2024 17:43:17 GMT</pubDate>
    <dc:creator>Lyson</dc:creator>
    <dc:date>2024-07-18T17:43:17Z</dc:date>
    <item>
      <title>How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936174#M46676</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;
&lt;P&gt;I am trying to estimate a linear mixed model for treatments arranged in CRD using SAS using proc mixed or proc glimmix. I have 3 categorical factors A, B and C where factor C is assumed random, and A,B are fixed. My data set looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1721308307376.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98481i3CDD8E50FCECDCCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1721308307376.png" alt="Lyson_0-1721308307376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp; syntaxes that I am exploring are:&lt;/P&gt;
&lt;P&gt;a) PROC GLIMMIX&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=FFRgroup outdesign=XZ;;
class factorA factorB factorC  groupA groupB groupC rep;
model yield= groupA | groupB / ddfm=satterthwaite;
random factorC factorA*factorC  factorB*factorC factorA*factorB*factorC /  V;
lsmeans groupA | groupB   / pdiff cl alpha=0.05 ;
Title "FFR Model";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;whch displays the following V matrix,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_2-1721307720866.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98479i285FCAD0455F99E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_2-1721307720866.png" alt="Lyson_2-1721307720866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;b) PROC&amp;nbsp; MIXED:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=FFRgroup ;
class factorA factorB factorC  groupA groupB groupC rep;
model yield= groupA | groupB / ddfm=satterthwaite;
random factorC factorA*factorC  factorB*factorC factorA*factorB*factorC /  V;
lsmeans groupA | groupB   / pdiff cl alpha=0.05 ;
Title "FFR Model";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;displays the following V matrix,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_3-1721307827866.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98480iBD87F0F160C90E6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_3-1721307827866.png" alt="Lyson_3-1721307827866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What could be the problem with these two approaches not producing the covariance structure that aligns with the model in question (block diagonal)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your assistance folks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936174#M46676</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T14:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936192#M46678</link>
      <description>&lt;P&gt;If you rewrite your RANDOM statement below --&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;random factorC factorA*factorC  factorB*factorC factorA*factorB*factorC&lt;/LI-CODE&gt;
&lt;P&gt;to the one that makes the model to be processed by subjects and is more numerically efficient --&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;random int factorA  factorB factorA*factorB / subject=factorC v;&lt;/LI-CODE&gt;
&lt;P&gt;in both procedures, then you would probably see the V option displaying the first block (for the first level of FACTORC) of the variance covariance matrix. Do the two procedures give you the same output for the V matrix?&lt;/P&gt;
&lt;P&gt;Also the values in the output you show from PROC MIXED look unusually large to me. What do you see in the Log from PROC MIXED? It might be a good idea to examine the logs from both procedures first.&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>Thu, 18 Jul 2024 14:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936192#M46678</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2024-07-18T14:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936213#M46679</link>
      <description>&lt;P&gt;When you use the V option of the random statement in either Proc Glimmix or Proc Mixed, the default behavior is to print out the first (single) block from the V matrix, not the whole block diagonal matrix. However, both procedures are still using block diagonal V. Note that blocks are usually defined by using the subject= option within the random statement. See here&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_051/statug/statug_glimmix_syntax25.htm" target="_blank"&gt;SAS Help Center: RANDOM Statement&lt;/A&gt;&amp;nbsp;and here&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_051/statug/statug_mixed_syntax13.htm#statug.mixed.randomstmt_v" target="_blank"&gt;SAS Help Center: RANDOM Statement&lt;/A&gt;&amp;nbsp;for more details about how to use the subject= statement to specify the blocks of V.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 15:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936213#M46679</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-18T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936239#M46680</link>
      <description>&lt;P&gt;Hi Jill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response. However, I have run both PROC MIXED and PROC GLIMMIX, but the result hasn't changed. I still get a diagonal matrix with single values, part of which is pasted below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1721323265869.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98496i6314C2F5864F7838/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1721323265869.png" alt="Lyson_0-1721323265869.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kindly clarify on the "Log" issue. I do not understand.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936239#M46680</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936244#M46681</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;As suggested by Jil, I have used the following code:&lt;BR /&gt;proc mixed data=FFRgroup ;&lt;BR /&gt;class factorA factorB factorC  groupA groupB groupC repA repB repC;&lt;BR /&gt;model yield= groupA | groupB / ddfm=satterthwaite;&lt;BR /&gt;random int factorA factorB factorA*factorB/subject=factorC v; &lt;BR /&gt;lsmeans groupA | groupB   / pdiff cl alpha=0.05 ;&lt;BR /&gt;Title "FFR Model";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And the results are as follows:&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936244#M46681</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936249#M46682</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1721324780269.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98497i0A516597FC65F76E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1721324780269.png" alt="Lyson_0-1721324780269.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_1-1721324834044.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98498iA1618FB8E9195D40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_1-1721324834044.png" alt="Lyson_1-1721324834044.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_2-1721324870694.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98499i024ACA0BF46EFE72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_2-1721324870694.png" alt="Lyson_2-1721324870694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;V still diagonal though,,,,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_3-1721324953491.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98500i7FC58008D4D0ACC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_3-1721324953491.png" alt="Lyson_3-1721324953491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Fixed effects look good...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936249#M46682</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936256#M46683</link>
      <description>&lt;P&gt;Hi Jil &amp;amp; Mike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created another variable "repA" through "repC" to capture the replications in each treatment cell, e.g., in the first cell I recorded "1, 1, 1, 1, 1" for the five replications in each of the rep variables. Then I had to define the "subject = " statement with&amp;nbsp; repC, the random variable. Is this in order? the data set, code and output are as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1721325610560.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98501i86BABA2CB7BA1CA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1721325610560.png" alt="Lyson_0-1721325610560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;proc mixed data=FFRgroup ;&lt;BR /&gt;class factorA factorB factorC  groupA groupB groupC repA repB repC;&lt;BR /&gt;model yield= groupA | groupB / ddfm=satterthwaite;&lt;BR /&gt;random int factorA factorB factorA*factorB/subject=repC v; &lt;BR /&gt;lsmeans groupA | groupB   / pdiff cl alpha=0.05 ;&lt;BR /&gt;Title "FFR Model";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_1-1721325761653.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98502i2FDD6283320D6E16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_1-1721325761653.png" alt="Lyson_1-1721325761653.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_2-1721325807377.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98503iEF2988F9D5F4ACA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_2-1721325807377.png" alt="Lyson_2-1721325807377.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_3-1721325874630.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98504iEBFFCA5529FDD5DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_3-1721325874630.png" alt="Lyson_3-1721325874630.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_4-1721325911225.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98505i6296B1931BFD755D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_4-1721325911225.png" alt="Lyson_4-1721325911225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Looks like the V matrix is still a diagonal matrix by default in PROC mixed, as highlighted by Mike.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 18:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936256#M46683</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936257#M46684</link>
      <description>&lt;P&gt;Your subject effect, FactorC, has one distinct level. All 120 observations have the value 'ra'. The subject= part of your model is not specified correctly. The documentation links above should help get you back on the right track.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 18:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936257#M46684</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-18T18:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936259#M46685</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I put back the original variable names in place of factor A, B and C, the code and output are as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=FFRgroup ;
class Treat Depth Incorp   repA repB repC;
model yield= Treat | Depth / ddfm=satterthwaite;
random  Treat Depth Treat*Depth/subject=Incorp v; 
lsmeans Treat | Depth   / pdiff cl alpha=0.05 ;
Title "FFR Model";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1721327916666.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98506i7EE29771DA3FD709/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1721327916666.png" alt="Lyson_0-1721327916666.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar results, but I notice the "G matrix not positive definite" issue. How can I improve these results around this issue, if at all it is another problem?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 18:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936259#M46685</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936266#M46686</link>
      <description>&lt;P&gt;I don't think I completely understand what you mean by the 'original' variable names - but renaming the variables won't fix this issue, if that is your question. You should not ignore the warning about the G matrix and you should likewise take note of all of the zeros in the covariance parameter estimates table. I still suspect your subject effect is misspecified, but I can't tell exactly how without your data. I would suggest first trying to fit a simpler model, such as a random-intercept model. That is&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random int / subject = Incorp v;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you get that working, start adding in other random factors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 18:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936266#M46686</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-18T18:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936269#M46687</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439735"&gt;@Mike_N&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Your first log shows that the final Hessian is not positive definite.&lt;/P&gt;
&lt;P&gt;Later, the Log shows that the G matrix is not positive definite.&lt;/P&gt;
&lt;P&gt;Your model is likely to be overspecified. You need to take care of your modeling issue first, before attempting to interpret and compare the output.&lt;/P&gt;
&lt;P&gt;Simplifying your model, especially your random effects, might be a good place to start.&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>Thu, 18 Jul 2024 19:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936269#M46687</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2024-07-18T19:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936274#M46688</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439735"&gt;@Mike_N&lt;/a&gt;&amp;nbsp;Thank you so much for the assistance. I finally got the diagonal V matrix in the other models. I will deal with the issue of the G matrix not positive definite by reducing the number of random levels and replications. I highly appreciate your assistance. The following two codes give the same results that I want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=RFRgroup outdesign=XZ;; 
class Treat Depth Incorp   ;
model yield=  Depth / ddfm=satterthwaite;
random Treat|Incorp Treat*Depth Depth*Incorp Treat*Depth*Incorp /   V ;
lsmeans  Depth  / pdiff cl alpha=0.05 ;
Title "RFR Model";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=RFRgroup ;
class Treat Depth Incorp   ;
model yield=  Depth / ddfm=satterthwaite;
random  Treat| Incorp Treat*Depth Depth*Incorp Treat*Depth*Incorp/ v; 
lsmeans  Depth   / pdiff cl alpha=0.05 ;
Title "FFR Model";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2024 19:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936274#M46688</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2024-07-18T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get a block diagonal covariance matrix, V, in SAS Proc Mixed or Proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936773#M46747</link>
      <description>&lt;P&gt;From experience, I think you may not have enough data to be able to distinguish and correctly estimate your RANDOM effects in these models, which would lead to the G matrix issues. Covariance parameter = 0 means you will get the non-positive definite message in the output. So, except in certain regulatory situations, you should simplify the RANDOM statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-i-get-a-block-diagonal-covariance-matrix-V-in-SAS-Proc/m-p/936773#M46747</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-07-23T14:19:03Z</dc:date>
    </item>
  </channel>
</rss>

