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

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1416 views
  • 0 likes
  • 2 in conversation