This book is in Open Review. We want your feedback to make the book better for you and other students. You may annotate some text by selecting it with the cursor and then click "Annotate" in the pop-up menu. You can also see the annotations of others: click the arrow in the upper right hand corner of the page

5 Hypothesis Tests and Confidence Intervals in SLR Model

This chapter continues our treatment of the simple linear regression model. The following subsections discuss how we may use our knowledge about the sampling distribution of the OLS estimator in order to make statements regarding its uncertainty.

These subsections cover the following topics:

  • Testing Hypotheses regarding regression coefficients.

  • Confidence intervals for regression coefficients.

  • Regression when \(X\) is a dummy variable.

  • Heteroskedasticity and Homoskedasticity.

The packages AER (Christian Kleiber and Zeileis 2008) and scales (Wickham and Seidel 2022) are required for reproduction of the code chunks presented throughout this chapter. The package scales provides additional generic plot scaling methods. Make sure both packages are installed before you proceed. The safest way to do so is by checking whether the following code chunk executes without any errors.

library(AER)
library(scales)

References

Kleiber, Christian, and Achim Zeileis. 2008. Applied Econometrics with R. New York: Springer-Verlag. https://CRAN.R-project.org/package=AER.
Wickham, Hadley, and Dana Seidel. 2022. scales: Scale Functions for Visualization (version 1.2.1). https://scales.r-lib.org.