I would like to obtain LSMeans comparisons for the within-subject factors of a repeated measures model using GLM.

Here is an example

proc glm;
   class Drug;
   model result1 result2 result3 result4 = Drug; 
   repeated Time 4 ;
   lsmeans Time;

The above example doesn't work because the variable time doesn't exist. Is there another way to get the comparisons using proc GLM or do I have to transform my data to long format and use proc Mixed ?

Thank you for your help!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.