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; run;
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!