Recall model 6.2 for birth weight in Example 6.4.5. This model includes separate intercepts for males () and females (). We might be interested in the difference between male and female birth weights, , estimated by . In particular, we might be interested in testing whether or not there is a difference between and ,
vs.
What is an appropriate test statistic for this test? What sampling distribution should we use to obtain the critical region, -value or confidence interval? Since is a linear combination of the regression coefficients, we can find its distribution, and hence a test statistic for this test.
In general for the linear combination
then
and
Further, because follows a multivariate normal distribution, so follows a normal distribution, {mdframed}
In practice, the unknown residual variance is replaced with the estimate .