BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
twix17
Obsidian | Level 7

Hello community,

I am doing some analysis for repeated measure data and using a mixed model method to carry out my analysis to accommodate missing data. Below are my lines of code and i have also attached the sample data  

proc mixed data=data;
class trt sub time (ref=first);
model Y = time trt time*trt/ s chisq;
repeated / type=un subject=sub r;
run;

I understand I needed to carry out model diagnostic before for modelling my data. Can anyone help on how I can perform Normality Assumption for my data with SAS code.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
twix17
Obsidian | Level 7

Thank you. I find this information helpful and implemented the suggestion.

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

My understanding is different. You test the normality assumption AFTER you fit the model, by seeing if the residuals are normally distributed. There is no need for the response or predictor variables to have a normal distribution.

--
Paige Miller
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

Best approach is to look at the studentized residuals in graphic form. Add PLOTS=studentpanel on the procedure statement. See the user guide about how to interpret. Normality is not overly important (within reason), but constant variability is important. 

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

Your choice of an unstructured covariance matrix (UN) could be problematic if you have many times. The number of parameters to estimate for variances and covariances grows geometrically with time. I recommend you check out the user's guide for examples of other choices for type=. 

The second example in the MIXED user's guide is a good place to start, if you haven't already read it. Or read:

https://www.jstor.org/stable/1400366?seq=1

 

 

twix17
Obsidian | Level 7

Thank you. I find this information helpful and implemented the suggestion.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3609 views
  • 4 likes
  • 3 in conversation