BookmarkSubscribeRSS Feed
sky1
Calcite | Level 5

I am trying to do repeated measure MANOVA using proc glm. The code that I wrote as following:

proc glm data=a;

model X1 X2 X3 X4

      Y1 Y2 Y3 Y4

      Z1 Z2 Z3 = treatment / nouni solution;

manova h=treatment;

repeated ......;

by _Imputation_;

run;

I have 3 measurements, X and Y were measured 4 times, Z was only measured 3 times. "treatment" has 2 levels: 0 vs 1.

The data has some missing value due to loss of follow up. I did multiple imputation using Proc MI with MCMC. I ended up having 5 complete data sets.

Questions:

(1) Can I do repeated measure MANOVA using Proc GLM with unbalanced outcomes (in this case, Z was only measured 3 times while X and Y measured 4 times)?

(2) If Proc glm allows unbalanced outcomes, how can I specify "repeated" statement?

(3) How do I combine the inference drawn from 5 complete data sets? Do I just focus on the coefficient of "treatment" and see if p-value in the combined result < 0.05?

Thank you very much.

3 REPLIES 3
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

It will be much better if you use PROC MIXED for your repeated measures, based on the information you supplied. Here is an old article, but it very nicely explains the transition from GLM to MIXED, and why GLM is not flexible enough for many applications. You have to change to a stacked data format.

http://www.ats.ucla.edu/stat/sas/library/mixedglm.pdf

Once you get the hang of this, you would be ready to look at doubly repeated measures:

http://www2.sas.com/proceedings/sugi29/188-29.pdf

http://www2.sas.com/proceedings/sugi31/187-31.pdf

sky1
Calcite | Level 5

Hello,

       Thank you for the paper. I read the third paper and I think it's very helpful. I guess my question is if I have three measurements: X, Y ,Z. X was measured 4 times within individual, Y was measured 4 times within individual, Z was measured 3 times within individual. Can I still use random mixed model as this paper suggested? Thank you.

fishhead
Calcite | Level 5

yes, u can have different number of repeated measures on different traits.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2159 views
  • 0 likes
  • 3 in conversation