Question about the Sums of Square Type 1 and Type 3



Hi everyone,

Suppose we study the medical expenditures Y of a population as a
function of gender, and age group.

Suppose we use the following SAS code:

proc glm;
model Y = gender age gender*age / SS1 SS2 SS3;
run;

Suppose that we want to test the null hypothesis that the average of
the medical expenditures of all the males is the same as the average
of the medical expenditures of all the females. Which Sums of squares
would you recommend using?

It looks to me like we want to look at whether the coefficient of the
gender variable is null. I was thinking I would use SS1, which will
compute R(gender | intercept) because of the way the model is set up.
Anybody agree or disagree with this?

Your help and pointers are much appreciated.

.