BookmarkSubscribeRSS Feed
always-good
Obsidian | Level 7

Hello everyone, When modeling with proc mixed in SAS studio,  in the Random effects builder, what is the difference when the variable in the model effects, is in the intercept box, subject effect (covariance structures), or group effect, please? 

4 REPLIES 4
StatsMan
SAS Super FREQ

The Random effect builder in SAS Studio does a lot! The best advice is to look at how the code changes as you add effects in different ways. The subject effect crosses the subject effect with all other random effects on that RANDOM statement. It will appear as the SUBJECT= effect on the RANDOM statement. The group effect causes the RANDOM statement to fit the random covariance parameters on this statement separately for each level of the group effect. It will appear as the GROUP= effect on the RANDOM statement. 

always-good
Obsidian | Level 7

Please explain how to interpret the output for a random effect. I mean, there is no probability of the effect like in the fixed effect, but there are covariance parameter estimates. How can I know if there is a significance? Thank you!

always-good
Obsidian | Level 7

There are lower and upper in the table

Ksharp
Super User

" how to interpret the output for a random effect."

Just interpret random effect as fixed effect.

 

"there is no probability of the effect like in the fixed effect,"

You can get estimated coefficient with SOLUTION= option.

 

"How can I know if there is a significance? "

You could use option COVTEST to check whether the random effect is significant or not.

 

proc mixed data=sashelp.class covtest; /*option covtest check random effect is significant or not*/
class age;
model height=weight/solution ; /*option solution= get estimated coefficient of fixed effect*/
random int/subject=age solution; /*option solution= get estimated coefficient of  random effect */
run;

Ksharp_0-1738995552285.png

 

Here random effect AGE got P value 0.2017 , which means AGE is NOT significant .You can use only Fixed effect in model.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 4 replies
  • 1721 views
  • 1 like
  • 3 in conversation