<?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: prox mixed Example 79.5 Random Coefficients in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493947#M25612</link>
    <description>&lt;P&gt;Is there any way to extract the full G matrix when we specify SUBJECT= option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reading the document as referenced &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mixed_syntax13.htm&amp;amp;locale=en#statug.mixed.randomstmt_g" target="_self"&gt;here&lt;/A&gt;, it mentions "&lt;EM&gt;If you specify the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mixed_syntax13.htm&amp;amp;locale=en#statug.mixed.randomstmt_subject"&gt;SUBJECT=&lt;/A&gt;&amp;nbsp;option, then the block of the&amp;nbsp;matrix corresponding to the &lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;first subject&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; is displayed&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I'd like to see the full G matrix for all blocks (even though if they might be identical which in this example because of TYPE=UN, I think that's not the case). A use case I am following is to fully reproduce "Solution for Random Effects" estimates (gamma hat) as defined by&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 210px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23128i7E8235F96EF178CA/image-dimensions/210x85?v=v2" width="210" height="85" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Sun, 09 Sep 2018 18:56:27 GMT</pubDate>
    <dc:creator>er7212</dc:creator>
    <dc:date>2018-09-09T18:56:27Z</dc:date>
    <item>
      <title>prox mixed Example 79.5 Random Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493828#M25603</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to PROC MIXED and having a trouble understanding SAS Doc Example (Example 79.5 Random Coefficients) as referenced &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_mixed_examples05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;. So in the first part of the example, we fit the following random intercept/slope model to the RC data with 'Batch' as the grouping (clustering) element:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="xis-codeBlock"&gt;proc mixed data=rc;
   class Batch;
   model Y = Month / s;
   random Int Month / type=un sub=Batch s;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And based on &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_mixed_examples05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.mixed.mixx5n" target="_self"&gt;Output 79.5.3&lt;/A&gt;, we have 2 columns per each subject which translates to 6 random effects that are related to each other with a full unstructured format. This means that the G matrix is 6 by 6 and all of 36 elements are parameters to be estimated. But later on, when I look at&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_mixed_examples05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.mixed.mixx5c" target="_self"&gt;Output 79.5.5&lt;/A&gt;, I can only find 4 of those estimates. So the question is what happened to other G parameter estimates and how I can retrieve those?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any words of wisdom anyone could share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 21:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493828#M25603</guid>
      <dc:creator>er7212</dc:creator>
      <dc:date>2018-09-08T21:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: prox mixed Example 79.5 Random Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493888#M25609</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Output 79.5.8 shows the estimated slope and intercept for each of the three subjects. The G matrix is 2x2. Since G is symmetric, that implies 3 parameters for the unstructured covariance matrix. Reread the paragraph that begins "The two random effects are&amp;nbsp;&lt;CODE class="aa-varname"&gt;Int&lt;/CODE&gt;&amp;nbsp;and&amp;nbsp;&lt;CODE class="aa-varname"&gt;Month,"&amp;nbsp;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;SPAN&gt;which includes the sentence, "In mixed model notation, G is block diagonal with unstructured 2x2 blocks. "&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 10:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493888#M25609</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-09T10:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: prox mixed Example 79.5 Random Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493901#M25610</link>
      <description>Thanks much, it indeed helps out.</description>
      <pubDate>Sun, 09 Sep 2018 14:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493901#M25610</guid>
      <dc:creator>er7212</dc:creator>
      <dc:date>2018-09-09T14:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: prox mixed Example 79.5 Random Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493947#M25612</link>
      <description>&lt;P&gt;Is there any way to extract the full G matrix when we specify SUBJECT= option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reading the document as referenced &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mixed_syntax13.htm&amp;amp;locale=en#statug.mixed.randomstmt_g" target="_self"&gt;here&lt;/A&gt;, it mentions "&lt;EM&gt;If you specify the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mixed_syntax13.htm&amp;amp;locale=en#statug.mixed.randomstmt_subject"&gt;SUBJECT=&lt;/A&gt;&amp;nbsp;option, then the block of the&amp;nbsp;matrix corresponding to the &lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;first subject&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; is displayed&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I'd like to see the full G matrix for all blocks (even though if they might be identical which in this example because of TYPE=UN, I think that's not the case). A use case I am following is to fully reproduce "Solution for Random Effects" estimates (gamma hat) as defined by&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 210px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23128i7E8235F96EF178CA/image-dimensions/210x85?v=v2" width="210" height="85" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 18:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493947#M25612</guid>
      <dc:creator>er7212</dc:creator>
      <dc:date>2018-09-09T18:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: prox mixed Example 79.5 Random Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493952#M25613</link>
      <description>&lt;P&gt;The "full matrix" is block-diagonal.&amp;nbsp;You can use the BLOCK function in SAS/IML (a matrix language) to construct block-diagonal matrices. An example is shown in the article &lt;A href="https://blogs.sas.com/content/iml/2012/11/07/constructing-block-matrices.html" target="_self"&gt;"Constructing block matrices with applications to mixed models."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You&amp;nbsp;can also use the MMEQ and MMEQSOL options to get the matrix expression for the mixed model equations. (Not sure if this last solution is relevant to your case.)&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 19:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/prox-mixed-Example-79-5-Random-Coefficients/m-p/493952#M25613</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-09T19:25:29Z</dc:date>
    </item>
  </channel>
</rss>

