I have data like in " sashelp.class ".
and I want to compare the mean weight of female to Overall mean ;
I wrote the following code
proc glm DATA=sashelp.class ;
Class sex ;
model weight= sex ;
MEANS sex ;
estimate 'Overallmean vs F Mean' intercept 1 sex -1 0;
estimate 'Overallmean vs M Mean' intercept 1 sex 0 -1;
estimate 'F Mean vs F Mean' intercept 0 sex 1 -1;
but couldn't get what I want.
Can someone tell why and how to do?
thanks a lot.