02-11-2017 09:10 PM
I've been poking around for some time, but i just can't seem to find a way to capture the value of AT MEANS on an LSMEANS statement. SAS prints the mean value of the covariate in my model as part of the subtitle header. Is there a way to capture this value to add to a reporting table?
02-11-2017 10:53 PM - edited 02-12-2017 12:17 PM
You would have to request option E in the LSMeans statement and capture ODS table LSMeanCoef. Example:
proc glm data=sashelp.class plots=none; class sex; model weight = sex age sex*age; lsmeans sex / e; ods output lsmeancoef=coef; run; quit; proc print data=coef; run;