<?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 SAS Glimmix model fixed and random effect in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Glimmix-model-fixed-and-random-effect/m-p/985650#M379876</link>
    <description>&lt;P&gt;The study design was for a dental in vitro implant study. There were 3 scanners, and there were 3 models they would like to compare. Basically they used each scanner to scan each of the model 10 times. They would like to compare the 3*3=9 means. The variance among groups were significantly different, so I included a random effect of _residual_.&amp;nbsp; My question was whether I should include scanner*model effect in&amp;nbsp;the random effects? If I included the two random effects as I list below, the estimated G matrix is not positive definite. Should I use the first random effect or second random effect? Thank you.&lt;/P&gt;&lt;DIV&gt;proc glimmix data=waleed1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; class scanner model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model Total_Dist = scanner model scanner*model/ solution ddfm=kr ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; random _residual_ / group=scanner*model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; random scanner*model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; lsmeans scanner*model/slice=scanner diff adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Mar 2026 16:56:05 GMT</pubDate>
    <dc:creator>xuyi</dc:creator>
    <dc:date>2026-03-30T16:56:05Z</dc:date>
    <item>
      <title>SAS Glimmix model fixed and random effect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Glimmix-model-fixed-and-random-effect/m-p/985650#M379876</link>
      <description>&lt;P&gt;The study design was for a dental in vitro implant study. There were 3 scanners, and there were 3 models they would like to compare. Basically they used each scanner to scan each of the model 10 times. They would like to compare the 3*3=9 means. The variance among groups were significantly different, so I included a random effect of _residual_.&amp;nbsp; My question was whether I should include scanner*model effect in&amp;nbsp;the random effects? If I included the two random effects as I list below, the estimated G matrix is not positive definite. Should I use the first random effect or second random effect? Thank you.&lt;/P&gt;&lt;DIV&gt;proc glimmix data=waleed1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; class scanner model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; model Total_Dist = scanner model scanner*model/ solution ddfm=kr ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; random _residual_ / group=scanner*model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; random scanner*model;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; lsmeans scanner*model/slice=scanner diff adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Mar 2026 16:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Glimmix-model-fixed-and-random-effect/m-p/985650#M379876</guid>
      <dc:creator>xuyi</dc:creator>
      <dc:date>2026-03-30T16:56:05Z</dc:date>
    </item>
  </channel>
</rss>

