<?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 PROC HPMIXED: why does TYPE=VC not show covariance for subject? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417472#M21933</link>
    <description>&lt;P&gt;I am using SAS Enterprise Guide and need to calculate the intraclass correlation for a mixed model with repeated subjects. In this scenario, I don't have access to BASE SAS, since I am running analysis on a very tightly controlled virtual reality desktop. When I run PROC HPMIXED, the results only give me the residual covariance and not the covariance for both the residual and subject. If I switch covariance types, I get rid of this issue, but the ICC is close to 100%, which is wrong. Is there a way to fix this without switching the covariance type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code with dataset and variable names edited:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc hpmixed data=dataset;&lt;/P&gt;&lt;P&gt;class id year var1 ;&lt;/P&gt;&lt;P&gt;model measure = var1-var24 / solution;&lt;/P&gt;&lt;P&gt;repeated year / subject = id type=vc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current output (numbers made up for illustration):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CovParm&amp;nbsp; &amp;nbsp; &amp;nbsp; Subject&amp;nbsp; &amp;nbsp; &amp;nbsp;Estimate&lt;/P&gt;&lt;P&gt;Residual&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.003324&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my desired output (numbers made up for illustration):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CovParm&amp;nbsp; &amp;nbsp; &amp;nbsp; Subject&amp;nbsp; &amp;nbsp; &amp;nbsp; Estimate&lt;/P&gt;&lt;P&gt;VC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000891&lt;/P&gt;&lt;P&gt;Residual&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.002511&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 18:28:38 GMT</pubDate>
    <dc:creator>stat2</dc:creator>
    <dc:date>2017-11-30T18:28:38Z</dc:date>
    <item>
      <title>PROC HPMIXED: why does TYPE=VC not show covariance for subject?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417472#M21933</link>
      <description>&lt;P&gt;I am using SAS Enterprise Guide and need to calculate the intraclass correlation for a mixed model with repeated subjects. In this scenario, I don't have access to BASE SAS, since I am running analysis on a very tightly controlled virtual reality desktop. When I run PROC HPMIXED, the results only give me the residual covariance and not the covariance for both the residual and subject. If I switch covariance types, I get rid of this issue, but the ICC is close to 100%, which is wrong. Is there a way to fix this without switching the covariance type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code with dataset and variable names edited:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc hpmixed data=dataset;&lt;/P&gt;&lt;P&gt;class id year var1 ;&lt;/P&gt;&lt;P&gt;model measure = var1-var24 / solution;&lt;/P&gt;&lt;P&gt;repeated year / subject = id type=vc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current output (numbers made up for illustration):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CovParm&amp;nbsp; &amp;nbsp; &amp;nbsp; Subject&amp;nbsp; &amp;nbsp; &amp;nbsp;Estimate&lt;/P&gt;&lt;P&gt;Residual&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.003324&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my desired output (numbers made up for illustration):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CovParm&amp;nbsp; &amp;nbsp; &amp;nbsp; Subject&amp;nbsp; &amp;nbsp; &amp;nbsp; Estimate&lt;/P&gt;&lt;P&gt;VC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000891&lt;/P&gt;&lt;P&gt;Residual&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.002511&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417472#M21933</guid>
      <dc:creator>stat2</dc:creator>
      <dc:date>2017-11-30T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HPMIXED: why does TYPE=VC not show covariance for subject?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417478#M21936</link>
      <description>&lt;P&gt;Please provide more detail. See the posting guidelines here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Getting-Started/How-to-get-fast-helpful-answers/ta-p/226133/jump-to/first-unread-message" target="_self"&gt;https://communities.sas.com/t5/Getting-Started/How-to-get-fast-helpful-answers/ta-p/226133/jump-to/f...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/189-2012.pdf" target="_self" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/resources/papers/proceedings12/189-2012.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 17:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417478#M21936</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-11-30T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HPMIXED: why does TYPE=VC not show covariance for subject?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417506#M21940</link>
      <description>&lt;P&gt;Thanks. I updated my response. Let me know if you need more information.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417506#M21940</guid>
      <dc:creator>stat2</dc:creator>
      <dc:date>2017-11-30T18:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HPMIXED: why does TYPE=VC not show covariance for subject?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417538#M21941</link>
      <description>&lt;P&gt;Excellent update with details! Thank you. In the future, just add a new entry in the thread rather than editing a previous entry, so that all the previous information is still available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TYPE=VC cannot produce a partitioning of variances for computation of ICC. Because TYPE=CS is not available for the REPEATED statement in HPMIXED, I would consider this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpmixed data=dataset;
class id year var1 ;
model measure = var1-var24 / solution;
random intercept / subject = id;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would think that you would have the MIXED procedure available to you in Enterprise Guide, and that you would not necessarily need the "large problem" features of HPMIXED. If so, these two syntax variations produce the same result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=dataset;
   class id year var1;
   model measure= var1-var24;
   repeated year / type=cs subject=id r rcorr; /* Note that RCORR reports ICC */
run;

proc mixed data=dataset;
   class id year var1;
   model measure= var1-var24;
   random intercept / subject=id;
run;
&lt;/CODE&gt;&lt;/PRE&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, 30 Nov 2017 20:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-HPMIXED-why-does-TYPE-VC-not-show-covariance-for-subject/m-p/417538#M21941</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-11-30T20:09:32Z</dc:date>
    </item>
  </channel>
</rss>

