BookmarkSubscribeRSS Feed
xuyi
Fluorite | Level 6

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_.  My question was whether I should include scanner*model effect in 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.

proc glimmix data=waleed1;
    class scanner model;
    model Total_Dist = scanner model scanner*model/ solution ddfm=kr ;
    random _residual_ / group=scanner*model;
    random scanner*model;
    lsmeans scanner*model/slice=scanner diff adjust=tukey;
run;

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 304 views
  • 0 likes
  • 1 in conversation