Welcome!
In this seminar, we will cover several fundamental topics related to linear regression models, including:
1. The linear regression model equation.
2. The ordinary least squares method.
3. Simple linear regression with both continuous and categorical predictors.
4. Multiple linear regression.
5. Modeling interactions between two variables.
6. Regression diagnostics.
Throughout the seminar, we will utilize R to fit linear regression models, interpret model estimates, and conduct regression diagnostics.
To participate fully, please ensure you have the latest versions of R and RStudio installed. You can download both R and RStudio for free from the RStudio website, where links to both downloads are available. In addition, please install the following packages before the workshop:
install.packages(c("knitr", "tidyverse", "skimr", "kableExtra"))
You can download the seminar slides here: Left-click the link to open the presentation directly. To download with all images, open the presentation (by left-clicking), then right-click in the presentation, select “Save As”, and then make sure you save as type “Webpage, Complete” (Note: this will download the webpage and a folder of images and style files).
Use any web browser (Chrome, Firefox, etc.) to view the seminar. Once it is open, use the following keys to alter the display:
- use arrow keys, mouse click, or spacebar to advance slides
'a'toggles between slide-show view and handout view (view all slides at once)'k'to disable advancing slides with mouse-click (if you need to copy-paste code, for example)'s'andbto make the font bigger and smaller'F11'to go to full-screen and back
If you are new to R, watch this seminar.
