We are testing whether an extra year of mother’s education has the same effect on wage as an extra year of father’s education and twice the effect of an extra IQ point. Allow the subscript i to denote how the equation applies for each individual sample.
The test statistic is t= 10.373/6.281 = 1.651, following a t distribution with 718 degrees of freedom, and at a 5% double tail two sided significance test, the critical value of t is equal to 1.963.
Since |1.651| < 1.963, we fail to reject the null hypothesis. The p value for restrict_test is also 0.0991 which is greater than 0.05, confirming the notion that we do not have sufficient evidence to reject the null hypothesis.
(c)
library(wooldridge)data(wage2)m3c <-lm(wage ~ IQ + feduc +I(meduc - feduc), data = wage2)summary(m3c)
Call:
lm(formula = wage ~ IQ + feduc + I(meduc - feduc), data = wage2)
Residuals:
Min 1Q Median 3Q Max
-904.33 -255.18 -44.87 214.46 2030.56
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 24.764 102.387 0.242 0.8090
IQ 6.805 1.047 6.500 1.51e-10 ***
feduc 24.545 5.765 4.258 2.34e-05 ***
I(meduc - feduc) 10.373 6.281 1.651 0.0991 .
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 383.6 on 718 degrees of freedom
(213 observations deleted due to missingness)
Multiple R-squared: 0.1199, Adjusted R-squared: 0.1162
F-statistic: 32.6 on 3 and 718 DF, p-value: < 2.2e-16
# crit value for one-sided test at 5% significance levelprint(qt(0.95, df =718))
This is a one tail test where the alternative states that the father’s education has a larger effect on wage than the mother’s education.
The output finds that the standard error is 6.281 and it has a restriction term of 10.373 being its coefficient, following a t distribution with 718 DOF yielding a t statistic of 1.651. Since this is greater than the t statistic t=1.646979, we can reject the null hypothesis in favour of the alternative and that the father’s education has a larger effect on wage than the mother’s education. Interestingly enough we also note that the 2IQ term doesn’t change the overall regression output much, likely due to them being highly col-linear.