Simple Linear Regression: Categorical Predictor

preview_player
Показать описание
In this lecture we examine in detail a simple linear regression model with a single binary predictor. We start with a two-sample t-test before using the lm function in R to run our simple linear regression. A brief, but complete, interpretation is provided for our slope term, as well as the coefficient of determination (R-squared) and an illustration of what happens if we reverse our coding for the binary group variable (i.e., 0 becomes 1 and 1 becomes 0).


Table of Contents:

00:00 - Intro Song
00:18 - Welcome
00:51 - Motivating Example
02:15 - t-test in R
04:34 - SLR in R with Categorical Predictor
08:03 - SLR Diagnostic Plots
09:18 - SLR Coefficient Table
10:14 - SLR Complete Interpretation
14:31 - Complete Interpretation Final Conclusion
15:04 - Coefficient of Determination (R-squared)
15:52 - What if group indicator is reversed?
Рекомендации по теме