Hello, I'm having problems with SAS giving me incorrect means. I've got two missing data points but it all ready correctly in my PROC PRINT step...Any help would be appreciated! I've also attached my data text file. Here is the code below: TITLE1 '2022 NewLeaf NUE Trials' ; DATA MORVT; INFILE 'C:\Users\jlcdtv\OneDrive - University of Missouri\Documents\2022 Research\2022 Company Trials\NewLeaf NUE Trials.txt' firstobs=3 obs=134 DLM='09'x DSD; INPUT TestNo$ TestName$ Site$ Trt Treatment$ Plot Rep EScore StandCt Stand Vigor HeadDate$ Julian CanopyHt Weight Moisture TestWt Yield; RUN ; ods html close; ods rtf file='C:\Users\jlcdtv\OneDrive - University of Missouri\Documents\2022 Research\2022 Company Trials\2022 NewLeaf NUE.rtf' style=journal bodytitle; PROC PRINT DATA=MORVT ; QUIT ; PROC GLIMMIX DATA=MORVT; CLASS Trt Site; MODEL Yield= Trt Site Trt*Site/ ddfm=kr dist=gamma link=log; RANDOM rep; ods exclude Dimensions FitStatistics OptInfo IterHistory; LSMEANS Trt Site Trt*Site / ilink lines; output out=new pred=predicted resid=residual student=student; RUN; proc print data=new noobs label;; var plot site rep yield residual student; where abs(student) > 2.5; run; ods rtf close;
... View more