<?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 Zero estimates for solution for random effects in proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389917#M20308</link>
    <description>&lt;P&gt;I'm conducting a MLM analysis using proc mixed. The level 1 variables are dummy coded variables for grade comparisons (Dummy_FS=freshmen vs seniors; Dummy_SS= sophomores vs seniors; Dummy_JS = juniors versus seniors). Note that some institutions do not have freshmen, others do not have sophomores and others do not have juniors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I requested the solutions for random effects and&amp;nbsp;for some institutions I got zero estimates for some of the dummy variables. &amp;nbsp;Those zero estimates correspond to those institutions that do not have information available to compute those estimates. For example, looking at the attached table, Institution 372 do not have juniors nor sophomores, hence the zero estimates in&amp;nbsp;Dummy_FS and Dummy_SS.&lt;/P&gt;&lt;P&gt;My question is: what does the zero estimate mean? Specifically, I'd like to know if those institutions with no information in specific comparisons, are being considered in the overall estimation of the random slopes or if they are not being considered in the estimation. How should I interpret the zero estimates and the standard error of prediction for those institutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Aug 2017 17:01:21 GMT</pubDate>
    <dc:creator>MOA</dc:creator>
    <dc:date>2017-08-22T17:01:21Z</dc:date>
    <item>
      <title>Zero estimates for solution for random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389917#M20308</link>
      <description>&lt;P&gt;I'm conducting a MLM analysis using proc mixed. The level 1 variables are dummy coded variables for grade comparisons (Dummy_FS=freshmen vs seniors; Dummy_SS= sophomores vs seniors; Dummy_JS = juniors versus seniors). Note that some institutions do not have freshmen, others do not have sophomores and others do not have juniors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I requested the solutions for random effects and&amp;nbsp;for some institutions I got zero estimates for some of the dummy variables. &amp;nbsp;Those zero estimates correspond to those institutions that do not have information available to compute those estimates. For example, looking at the attached table, Institution 372 do not have juniors nor sophomores, hence the zero estimates in&amp;nbsp;Dummy_FS and Dummy_SS.&lt;/P&gt;&lt;P&gt;My question is: what does the zero estimate mean? Specifically, I'd like to know if those institutions with no information in specific comparisons, are being considered in the overall estimation of the random slopes or if they are not being considered in the estimation. How should I interpret the zero estimates and the standard error of prediction for those institutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389917#M20308</guid>
      <dc:creator>MOA</dc:creator>
      <dc:date>2017-08-22T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Zero estimates for solution for random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389929#M20310</link>
      <description>&lt;P&gt;It would be helpful to see your code and your dataset (or if your data cannot be shared, a dataset that closely resembles yours and provides similar results).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you concocting your own dummy variables for the grade factor rather than using the CLASS statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 17:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389929#M20310</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-08-22T17:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Zero estimates for solution for random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389956#M20314</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160198"&gt;@MOA&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Specifically, I'd like to know if those institutions with no information in specific comparisons, are being considered in the overall estimation of the random slopes or if they are not being considered in the estimation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Random slopes of what? You haven't mentioned the model you are fitting or any other variables that are being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the other respondent said, we really need to see your code.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 18:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389956#M20314</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-22T18:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Zero estimates for solution for random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389970#M20316</link>
      <description>&lt;P&gt;I'm computing a MLM model with the three dummy variables as level 1 variables. I'm computing the fixed effects and random slopes for the dummy variables.&amp;nbsp;Here's the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data= MLM_grade method = ml covtest ;&lt;BR /&gt;class inst_ID ;&lt;BR /&gt;model dv = Dummy_FS Dummy_SS Dummy_JS / solution;&lt;BR /&gt;random intercept Dummy_FS Dummy_SS Dummy_JS / subject = inst_ID s;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used dummy variables instead of the class statement since I am comparing the results across different programs (Mplus, SPSS, HLM). Attached is the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 18:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/389970#M20316</guid>
      <dc:creator>MOA</dc:creator>
      <dc:date>2017-08-22T18:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Zero estimates for solution for random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/390016#M20318</link>
      <description>&lt;P&gt;I'll assume it is your intent to compare the mean DV across four grades, or to compare the first 3 means (freshman, sophomore, junior) to the fourth (senior).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grade is categorical.&amp;nbsp;Although it is true that ANOVA is equivalent to regression on a set of dummy variables,&amp;nbsp;I don't think random slopes for dummy variables make any sense.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to compare estimates of mean DV by grade across software packages, it does not matter how grade is coded; any coding system will give you the same means. If you want to compare parameter estimates, then you will need to use similar coding systems. By default, the MIXED procedure uses the last level as the reference level, but you can control that using the REF= option on the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that multiple observations (students?) for each level of grade within the same inst_ID are subsamples and are not independent, I suggest this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data= MLM_grade method = ml covtest ;
    class inst_ID grade;
    model dv = grade / solution;
    random inst_id inst_id*grade / solution;
    /* pair-wise comparisons among grades */
    lsmeans grade / pdiff adjust=simulate(seed=123) ;
    /* comparison of each grade to control */
    lsmeans grade / adjust=dunnett pdiff=control('4');
    run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;An equivalent syntax for the RANDOM statement is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    random intercept grade / subject=inst_id solution;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either&amp;nbsp;RANDOM statement produces an estimate of variance among inst_id, an estimate of variance among groups of students assigned to the same grade within inst_id, and and estimate of variance among students within groups (residual).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This model assumes that data are missing at random, but in fact you are missing appreciably more data on freshman and sophomore grade levels than on junior and senior. The number of students is extremely unbalanced within each inst_id and within groups within inst_id. These issues may make this model inappropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 20:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Zero-estimates-for-solution-for-random-effects-in-proc-mixed/m-p/390016#M20318</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-08-22T20:28:50Z</dc:date>
    </item>
  </channel>
</rss>

