Assuming that you have 3 groups in Faculty, and Males and Females in each Faculty the estimate code to use is:
/* Averaged over Males and Females */
Estimate "Art Vs Medical Science" Faculty 1 0 -1 / e;
/* Just for Females */
Estimate "Art Females Vs Medical Science Females" Faculty 1 0 -1 Faculty * Gender 1 0 0 0 -1 0 / e;
The e option let's you make sure that the correct groups have been compared. To compare Just Male students the coefficients for Faculty * Gender will just have to be changed a little.
Sent from my iPhone
On 12/11/2009, at 5:57, Madan Kundu <[log in to unmask]> wrote:
I have following two factors in my GLM.
Faculty: Arts Engineering Medical Science
Gender: Male Female
I want to test:
Ho: Difference between male and female in Arts = Differene between male and female in Science
I guess I need to use Contrast or Estimate statement in SAS. Please let me know what to specify in Contrast or Estimate statement.
I have my PROC GLM code as follows:
proc glm data=mydata;
class Faculty Gender;
model y=faculty gender faculty*gender;
Thanks & Regards
Madan Gopal Kundu
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/