From stock and watson 3rd edition introduction to econometrics
Using the data set CollegeDistance described, run a regression of years of completed education (ED) on distance to the nearest college (Dist) and carry out the following exercises.
a) Is the estimated regression slope coefficient statistically significant? That is, can you reject the null hypothesis Ho: β1=0 versus a two sided alternative at the 10%, 5%, or 1% significance level? What is the p-value associated with coefficient's t-statistic?
b) Construct a 95% confidence interval for the slope coefficient.
c) Run the regression using data only on females and repeat (b)
d) Run the regression using data only on males and repeat (b)
e) Is the effect of distance on completed years of education different for men than for women?