I have used the following to calculate Cohen's d with PROC TTEST and I am wondering if there is a way to do something similar with PROC GLM so that I can calculate Cohen's d from the LSMeans.
proc ttest DATA=surveydata plots=none;
class X;
var A B C
ods select ConfLimits;
ods output ConfLimits=CL;
run;
data CohenD;
set Cl(where=(method="Pooled") rename=(Mean=MeanDiff));
CohenD = MeanDiff / StdDev;
run;
proc print data=CohenD noobs;
var Variable Class Method MeanDiff StdDev CohenD;
run;
Here is my CURRENT PROC GLM STATEMENT. I want to be able to use the same data statement as above to calculate Cohen's d.
PROC GLM DATA=surveydata PLOTS=none;
CLASS X;
MODEL A B C = X;
LSMEANS X /adjust=bon;
RUN;
Is there a way to do this? Thank you for any help!!