BookmarkSubscribeRSS Feed
3 REPLIES 3
rmalcata
Quartz | Level 8

Yes, you can. This depends what your desire output is.

For example:

I am predicting time based on a quadratic model of the age of my subjects (reason why I have age and age2, where age2=age*age). If my model includes:

 

model time=age age2;

random int age age2/subject=ind;

 

My output using fixed effect would be the quadratic age trend for an average subject. When you combined the fixed and the random solutions per subject, you would get the quadratic age trend for each of your subjects.

Let me know if this answers your question. 

 

Rita

fbabinec
Calcite | Level 5
Yes, thanks. I have a second question: what happens if you use a class variable as both fixed and random?



Please type your reply above this line. Simple formatting, no attachments. -##
rmalcata
Quartz | Level 8

Using a class variable, it is like intercepts, the fixed effect will give you the effect for the average subject while the combination of the fixed and random will give you the value for that particular subject. This is assuming you are specifying the random statement per subject.

It might be easier to give you an interpretation if I can see your model. Be aware that sometimes when specifying fixed and random effects and depending on the level of detail of the data, the random effect might be zero, because they are acting as residuals.

regards,

Rita

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 1504 views
  • 0 likes
  • 2 in conversation