<?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: GLIMMIX Estimate statement for three level model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287814#M15266</link>
    <description>&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Thanks for taking the time to think about it, I really appreciate it.&lt;BR /&gt;I am interested in the estimates of the random intercept and coefficient for each transect, so my estimates are:&lt;/P&gt;&lt;PRE&gt;	  estimate 'Transect 1 - Intercept'  int 1 | int 1 /subject 1 ;
	  estimate 'Transect 1 - Coefficient' year_num 1 | year_num 1 /subject 1 ;
	  estimate 'Transect 2 - Intercept' int 1 | int 1/subject 0 1;
	  estimate 'Transect 2 - Coefficient' year_num 1 | year_num 1/subject  0 1;&lt;/PRE&gt;&lt;P&gt;... for transects from 1 to 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get no errors when I use quad(transect) as the subject in the first random statement as you suggested. But, since the quadrats are subdivisions of the transects, the design suggests that there will be some dependence between observations of the same transect (dependence between measurements collected in different quadrats of the same transect). So, is it ok to just use random intercepts for quadrats?&lt;BR /&gt;I am a beginner in GLMM so please forgive me if my understanding is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have access to the paper you suggested later today so I will read it as soon as I have it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 14:22:17 GMT</pubDate>
    <dc:creator>joaolrossi</dc:creator>
    <dc:date>2016-07-28T14:22:17Z</dc:date>
    <item>
      <title>GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/206333#M11086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running a multilevel Poisson model with students within classes within schools, and I would like to estimate the sum (and its SE) of the fixed and random effects for exposure at the school level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PROC GLIMMIX&amp;nbsp; data = dat7&amp;nbsp; noclprint&amp;nbsp; ;&amp;nbsp; &lt;BR /&gt; class&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; school class / ref=first ;&lt;BR /&gt; model O =&amp;nbsp; exposure&amp;nbsp; / solution&amp;nbsp; ;&lt;BR /&gt; random exposure&amp;nbsp; / subject=school solution cl ;&lt;BR /&gt; random intercept&amp;nbsp;&amp;nbsp; / subject=class (school) ;&lt;BR /&gt; estimate 'school 1' intercept 0&amp;nbsp; exposure&amp;nbsp; 1 | intercept 0 exposure&amp;nbsp; 1 / subject 1;&lt;BR /&gt; estimate 'school 2' intercept 0&amp;nbsp; exposure&amp;nbsp; 1 | intercept 0 exposure&amp;nbsp; 1 / subject 0 1;&lt;BR /&gt; estimate 'school 3' intercept 0&amp;nbsp; exposure&amp;nbsp; 1 | intercept 0 exposure&amp;nbsp; 1 / subject 0 0 1;&lt;BR /&gt; estimate 'school 4' intercept 0&amp;nbsp; exposure&amp;nbsp; 1 | intercept 0 exposure&amp;nbsp; 1 / subject 0 0 0 1;&lt;BR /&gt; estimate 'school 5' intercept 0&amp;nbsp; exposure&amp;nbsp; 1 | intercept 0 exposure&amp;nbsp; 1 / subject 0 0 0 0 1;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error message :&lt;/P&gt;&lt;P&gt;ERROR: Contrasts between subjects require that all random effects have the same subject; the CONTRAST statement is ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glimmix does not allow the estimate statement when there are more than two subject levems. I tried by curiosity with Proc HPMIXED and it does work (but not with Proc Mixed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 10:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/206333#M11086</guid>
      <dc:creator>Alexis_EG</dc:creator>
      <dc:date>2015-07-20T10:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/206334#M11087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to get around this would be to consolidate the random statements into a single equivalent statement.&amp;nbsp; Consider using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;random exposure class/subject=school solution cl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Z matrix for this ought to be the same as that generated by your two level random statement, recalling that SAS parameterizes nested effects exactly the same column-wise as crossed effects.&amp;nbsp; However convergence may be more problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 13:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/206334#M11087</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-20T13:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287190#M15237</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;Hello,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;I am having a very similar problem. The main difference is that I have G- and R-side random effects. I have 9 transects placed&amp;nbsp;in random locations, each containing 10 quadrats (quad) and measurements were taken in these quadrats once a year during 4 years. So I am using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;random int / subject = transect solution;&lt;BR /&gt;random year /subject=quad(transect) type=ar(1) residual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;Since I am using&amp;nbsp;2 subject types, when use "estimate" to obtain&amp;nbsp;estimates at the transect level I get the error: "Contrasts between subjects require that all random effects have the same subject".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;Is there any way to consolidate these in a single statement?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287190#M15237</guid>
      <dc:creator>joaolrossi</dc:creator>
      <dc:date>2016-07-26T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287792#M15263</link>
      <description>&lt;P&gt;I need a bit more info. &amp;nbsp;When you are writing your ESTIMATE statements, are there random effects included? &amp;nbsp;If not, then using the LSMESTIMATE statement might work out better. &amp;nbsp;If there are random effects, as in the solution provided earlier, then perhaps you can consider quadrat within transect as the observational unit. &amp;nbsp;This paper by Littell et al. points out how they did it for a similar design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;FONT size="2"&gt;Statistical analysis of repeated measures data using SAS procedures.&lt;/FONT&gt;&lt;/H1&gt;
&lt;DIV class="auths"&gt;&lt;FONT size="2"&gt;&lt;A href="http://www.ncbi.nlm.nih.gov/pubmed/?term=Littell%20RC%5BAuthor%5D&amp;amp;cauthor=true&amp;amp;cauthor_uid=9581947" target="_blank"&gt;Littell RC&lt;/A&gt;&lt;SUP&gt;1&lt;/SUP&gt;, &lt;A href="http://www.ncbi.nlm.nih.gov/pubmed/?term=Henry%20PR%5BAuthor%5D&amp;amp;cauthor=true&amp;amp;cauthor_uid=9581947" target="_blank"&gt;Henry PR&lt;/A&gt;, &lt;A href="http://www.ncbi.nlm.nih.gov/pubmed/?term=Ammerman%20CB%5BAuthor%5D&amp;amp;cauthor=true&amp;amp;cauthor_uid=9581947" target="_blank"&gt;Ammerman CB&lt;/A&gt;.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&lt;A title="Journal of animal science." href="http://www.ncbi.nlm.nih.gov/pubmed/9581947" target="_blank"&gt;J Anim Sci.&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; 1998 Apr;76(4):1216-31.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;And look at the AR(1)+RE model. &amp;nbsp;I think for your case, it could be handled as:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random int / subject = quad(transect) solution;
random year /subject=quad(transect) type=ar(1) residual;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;FONT size="2"&gt;&lt;SPAN&gt;Now you have identical subjects, and the ESTIMATE statements shouldn't throw the error you are seeing. &amp;nbsp;My only caveat is that you might now run into convergence issues.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Steve Denham&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auths"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287792#M15263</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-28T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287814#M15266</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Thanks for taking the time to think about it, I really appreciate it.&lt;BR /&gt;I am interested in the estimates of the random intercept and coefficient for each transect, so my estimates are:&lt;/P&gt;&lt;PRE&gt;	  estimate 'Transect 1 - Intercept'  int 1 | int 1 /subject 1 ;
	  estimate 'Transect 1 - Coefficient' year_num 1 | year_num 1 /subject 1 ;
	  estimate 'Transect 2 - Intercept' int 1 | int 1/subject 0 1;
	  estimate 'Transect 2 - Coefficient' year_num 1 | year_num 1/subject  0 1;&lt;/PRE&gt;&lt;P&gt;... for transects from 1 to 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get no errors when I use quad(transect) as the subject in the first random statement as you suggested. But, since the quadrats are subdivisions of the transects, the design suggests that there will be some dependence between observations of the same transect (dependence between measurements collected in different quadrats of the same transect). So, is it ok to just use random intercepts for quadrats?&lt;BR /&gt;I am a beginner in GLMM so please forgive me if my understanding is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have access to the paper you suggested later today so I will read it as soon as I have it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287814#M15266</guid>
      <dc:creator>joaolrossi</dc:creator>
      <dc:date>2016-07-28T14:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287820#M15269</link>
      <description>&lt;P&gt;If you want to model the dependence of quadrats within &amp;nbsp;transects, it is going to get dicey. &amp;nbsp;I would assume some sort of spatial covariance, so that distance between quadrats becomes a major factor in the covariance structure. &amp;nbsp;For now, the marginals over quadrat within transect should correctly capture the variability needed to make comparisons between fixed effect levels. &amp;nbsp;If it becomes of interest to compare BLUPs from transect to transect, then it might be good to consider modeling the within-transect error structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I will bet you a shiny new nickel that your research question doesn't need that level of granularity to be correctly addressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287820#M15269</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-28T14:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Estimate statement for three level model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287827#M15271</link>
      <description>&lt;P&gt;I will have to do some homework here to make sure I am tackling our research questions appropriately. Thanks for all your input, I really appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Estimate-statement-for-three-level-model/m-p/287827#M15271</guid>
      <dc:creator>joaolrossi</dc:creator>
      <dc:date>2016-07-28T14:51:49Z</dc:date>
    </item>
  </channel>
</rss>

