<?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 Covariance parameter estimates for 3 level growth model using MIANALYZE in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309527#M16370</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 and I was wondering how to get separate covariance estimates for a three level growth model using MIANALYZE. I would like to get these estimates to calcluate the ICC.&lt;/P&gt;&lt;P&gt;In step 2, I don't think I am properly separating&amp;nbsp;the estimates for level 3. I&amp;nbsp;believe I am just getting the estimates for the residual and for level 2.&lt;/P&gt;&lt;P&gt;I think it might be an issue with the output statement, or in step 2 with trying to separate the level 2 and level 3 estimates.&amp;nbsp;Any help with my code is appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*conduct means model to get estimates;&lt;/P&gt;&lt;P&gt;ODS _ALL_ CLOSE;&lt;BR /&gt;proc mixed data=person method = ml covtest;&lt;BR /&gt;class ID school;&lt;BR /&gt;model RV = / solution ddfm=bw covb;&lt;BR /&gt;random intercept /sub=id type=un;&lt;BR /&gt;random intercept /sub=id(school) type=un;&lt;BR /&gt;ods output SolutionF=cparms CovB=ccovb fitstatistics=fitstats;&lt;BR /&gt;ods output covparms=cvparmsm;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Get the combined fixed parameter estimates of the RV mean;&lt;BR /&gt;proc mianalyze parms=cparms covb(effectvar=rowcol)=ccovb;&lt;BR /&gt;modeleffects intercept;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Print covariance estimate&amp;nbsp;dataset for children and schools;&lt;BR /&gt;proc print data = cvparmsm (obs = 30);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 1: This doesnt seem to work. I would like to separate the residual, level 2 (child) and level 3 (school) estimates;&lt;BR /&gt;data cvparmsm;&lt;BR /&gt;set cvparmsm;&lt;BR /&gt;covparm2=covparm||id;&lt;BR /&gt;covparm3=covparm||id(school);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 2: sort covariance parameters dataset;&lt;BR /&gt;proc sort data= cvparmsm;&lt;BR /&gt;by covparm; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 3: Obtain the combined covariance parameters separately for level 2(child)? ;&lt;BR /&gt;proc mianalyze data = cvparmsm;&lt;BR /&gt;by covparm2;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 4: Obtain the combined covariance parameters separately for&amp;nbsp;level 3(school)? I seem to get the same estimate as Step 3.;&lt;/P&gt;&lt;P&gt;proc mianalyze data = cvparmsm;&lt;BR /&gt;by covparm3;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Nov 2016 20:09:17 GMT</pubDate>
    <dc:creator>cpolihronis</dc:creator>
    <dc:date>2016-11-05T20:09:17Z</dc:date>
    <item>
      <title>Covariance parameter estimates for 3 level growth model using MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309527#M16370</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 and I was wondering how to get separate covariance estimates for a three level growth model using MIANALYZE. I would like to get these estimates to calcluate the ICC.&lt;/P&gt;&lt;P&gt;In step 2, I don't think I am properly separating&amp;nbsp;the estimates for level 3. I&amp;nbsp;believe I am just getting the estimates for the residual and for level 2.&lt;/P&gt;&lt;P&gt;I think it might be an issue with the output statement, or in step 2 with trying to separate the level 2 and level 3 estimates.&amp;nbsp;Any help with my code is appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*conduct means model to get estimates;&lt;/P&gt;&lt;P&gt;ODS _ALL_ CLOSE;&lt;BR /&gt;proc mixed data=person method = ml covtest;&lt;BR /&gt;class ID school;&lt;BR /&gt;model RV = / solution ddfm=bw covb;&lt;BR /&gt;random intercept /sub=id type=un;&lt;BR /&gt;random intercept /sub=id(school) type=un;&lt;BR /&gt;ods output SolutionF=cparms CovB=ccovb fitstatistics=fitstats;&lt;BR /&gt;ods output covparms=cvparmsm;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Get the combined fixed parameter estimates of the RV mean;&lt;BR /&gt;proc mianalyze parms=cparms covb(effectvar=rowcol)=ccovb;&lt;BR /&gt;modeleffects intercept;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Print covariance estimate&amp;nbsp;dataset for children and schools;&lt;BR /&gt;proc print data = cvparmsm (obs = 30);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 1: This doesnt seem to work. I would like to separate the residual, level 2 (child) and level 3 (school) estimates;&lt;BR /&gt;data cvparmsm;&lt;BR /&gt;set cvparmsm;&lt;BR /&gt;covparm2=covparm||id;&lt;BR /&gt;covparm3=covparm||id(school);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 2: sort covariance parameters dataset;&lt;BR /&gt;proc sort data= cvparmsm;&lt;BR /&gt;by covparm; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 3: Obtain the combined covariance parameters separately for level 2(child)? ;&lt;BR /&gt;proc mianalyze data = cvparmsm;&lt;BR /&gt;by covparm2;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 4: Obtain the combined covariance parameters separately for&amp;nbsp;level 3(school)? I seem to get the same estimate as Step 3.;&lt;/P&gt;&lt;P&gt;proc mianalyze data = cvparmsm;&lt;BR /&gt;by covparm3;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 20:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309527#M16370</guid>
      <dc:creator>cpolihronis</dc:creator>
      <dc:date>2016-11-05T20:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance parameter estimates for 3 level growth model using MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309539#M16374</link>
      <description>&lt;P&gt;I don't know if your Step 1 is calculating covparm3 correctly. Did the log show any errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wouldn't expect id(school) to generate correct results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should it be id||school?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 23:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309539#M16374</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-05T23:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance parameter estimates for 3 level growth model using MIANALYZE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309545#M16375</link>
      <description>&lt;P&gt;Thanks for your help! I believe I&amp;nbsp;needed to&amp;nbsp;combine the covparm and subject into one variable!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 1: Combine covparm and subject in one variable;&lt;BR /&gt;data cvparmsm1;&lt;BR /&gt;set cvparmsm;&lt;BR /&gt;covparm2=covparm||subject;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Sort by covariance parameter estimate;&lt;/P&gt;&lt;P&gt;proc sort data= cvparmsm1;&lt;BR /&gt;by covparm2; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Step 3: Obtain the combined covariance parameters separately for the residual, nested level 2 and level 3;&lt;BR /&gt;proc mianalyze data = cvparmsm1;&lt;BR /&gt;by covparm2;&lt;BR /&gt;modeleffects estimate;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 00:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-parameter-estimates-for-3-level-growth-model-using/m-p/309545#M16375</guid>
      <dc:creator>cpolihronis</dc:creator>
      <dc:date>2016-11-06T00:00:25Z</dc:date>
    </item>
  </channel>
</rss>

