Hello, I tried including the formatted control value in the control option of the LSMEANS with adjust=dunnett. Got the error message " ERROR: Cannot find control level for effect Pedu." I double-checked the code as well as the spelling of the formatted values (Please see it in the Proc Format), everything looked fine to me. I am using SAS studio to run this program. Please let me know of any solutions/suggestions on this matter. My original code is included below. Thanks in advance! Sharon proc format; value fpedu 1= “below college” 2= “college” 3 = “graduate school”; run; proc glm data=ad; format pedu fpedu.; class pedu; model readscore = Pedu; lsmeans pedu/pdiff=control("graduate school") adjust=dunnett; title 'One Way ANOVA for testing differences in reading score across parent education groups'; run;
... View more