BookmarkSubscribeRSS Feed
palolix
Lapis Lazuli | Level 10

Dear SAS communities,

 

I have an experiment with 2 factors that are fixed (depths and date), date is also the factor analyzed as repeated measures. 4 factors are random (treatment, irrigation, dose and method of application). The response variable is nematode count (RKN). How would our model looks in Glimmix?

 

Here is what I have so far:

 

proc glimmix data=one;
class Block  Depths    Date trt    dosis    Irrigation method;
model RKN=Depths|Date|trt|dosis|Irrigation|method/dist=lognormal ddfm=kr;
random intercept Depths trt dosis Irrigation method  Depths*dosis Depths*Irrigation Irrigation*dosis Depths*Irrigation*dosis/Subject=Block;
random Date/residual subject=Block(Depths trt dosis Irrigation method Depths*dosis Depths*Irrigation Irrigation* dosis Depths*Irrigation*dosis) type=ar(1);
run;

 

I would greatly appreciate if you could help me with this model.

 

Thank you very much!

 

Caroline

2 REPLIES 2
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

 

Wow, what an ambitious experiment. In my opinion, a full 6-way factorial design is treacherous and typically excessively optimistic. Whatever will you do if your 6-way interaction is significant? (Which it could be, just due to random noise particularly if the number of replications is small.)

 

I would think that treatment, irrigation, dose and method of application would be fixed effect factors, not random effects factors. And in fact, your MODEL statement includes these factors and so your model is incorporating them as fixed effects.

 

You appear to have a blocked design, but I suspect the design might be much simpler than your RANDOM statements would imply. To provide more help, the Community will need more information about your experimental design, particularly the physical layout.

 

This looks like a fairly complex model for you, and I highly recommend studying SAS System for Mixed Models, 2nd ed or the (hopefully) soon-to-be-released update SAS for Mixed Models: An Introduction . 

palolix
Lapis Lazuli | Level 10

Thank you so much for your feedback on this! Yes you are right, the model was far too complicated, that is why we decided to leave only 4 factors, so now it worked. 

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2001 views
  • 0 likes
  • 2 in conversation