LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 11 Aug 2003 14:04:24 -0400
Reply-To:   "Elmaache, Hamani" <Hamani.Elmaache@CCRA-ADRC.GC.CA>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Elmaache, Hamani" <Hamani.Elmaache@CCRA-ADRC.GC.CA>
Subject:   Overallmean vs F Mean
Content-Type:   text/plain; charset="iso-8859-1"

Hi there.

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; run; quit;

but couldn't get what I want. Can someone tell why and how to do? thanks a lot.


Back to: Top of message | Previous page | Main SAS-L page