Logistic Regression in R, Clearly Explained!!!!
This video describes how to do Logistic Regression in R, step-by-step. We start by importing a dataset and cleaning it up, then we perform logistic regression on a very simple model, followed by a fancy model. Lastly we draw a graph of the predicted probabilities that came from the Logistic Regression.
The code that I use in this video can be found on the StatQuest GitHub:
https://github.com/StatQuest/logistic_regression_demo/blob/master/logistic_regression_demo.R
⭐ NOTE: When I code, I use Kite, a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=statquest&utm_content=description-only
For more details on what's going on, check out the following StatQuests:
For a general overview of Logistic Regression:
https://youtu.be/yIYKR4sgzI8
The odds and log(odds), clearly explained:
https://youtu.be/ARfXDSkQf1Y
The odds ratio and log(odds ratio), clearly explained:
https://youtu.be/8nm0G-1uJzA
Logistic Regression, Details Part 1, Coefficients:
https://youtu.be/vN5cNN2-HWE
Logistic Regression, Details Part 2, Fitting a line with Maximum Likelihood:
https://youtu.be/BfKanl1aSG0
Logistic Regression Details Part 3, R-squared and its p-value:
https://youtu.be/xxFYro8QuXA
Saturated Models and Deviance Statistics, Clearly Explained:
https://youtu.be/9T0wlKdew6I
Deviance Residuals, Clearly Explained:
https://youtu.be/JC56jS2gVUE
For a complete index of all the StatQuest videos, check out:
https://statquest.org/video-index/
If you'd like to support StatQuest, please consider...
Patreon: https://www.patreon.com/statquest
...or...
YouTube Membership: https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join
...a cool StatQuest t-shirt or sweatshirt (USA/Europe): https://teespring.com/stores/statquest
(everywhere):
https://www.redbubble.com/people/starmer/works/40421224-statquest-double-bam?asc=u&p=t-shirt
...buying one or two of my songs (or go large and get a whole album!)
https://joshuastarmer.bandcamp.com/
...or just donating to StatQuest!
https://www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
https://twitter.com/joshuastarmer
0:00 Awesome song and introduction
0:29 Load and format data
3:54 Dealing with missing data
5:03 Verifying that the data is not imbalanced
6:44 Logistic regression with one independent variable
12:48 Logistic regression with many independent variables
15:13 Graphing the predicted probabilities
#statquest #logistic
Видео Logistic Regression in R, Clearly Explained!!!! канала StatQuest with Josh Starmer
The code that I use in this video can be found on the StatQuest GitHub:
https://github.com/StatQuest/logistic_regression_demo/blob/master/logistic_regression_demo.R
⭐ NOTE: When I code, I use Kite, a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=statquest&utm_content=description-only
For more details on what's going on, check out the following StatQuests:
For a general overview of Logistic Regression:
https://youtu.be/yIYKR4sgzI8
The odds and log(odds), clearly explained:
https://youtu.be/ARfXDSkQf1Y
The odds ratio and log(odds ratio), clearly explained:
https://youtu.be/8nm0G-1uJzA
Logistic Regression, Details Part 1, Coefficients:
https://youtu.be/vN5cNN2-HWE
Logistic Regression, Details Part 2, Fitting a line with Maximum Likelihood:
https://youtu.be/BfKanl1aSG0
Logistic Regression Details Part 3, R-squared and its p-value:
https://youtu.be/xxFYro8QuXA
Saturated Models and Deviance Statistics, Clearly Explained:
https://youtu.be/9T0wlKdew6I
Deviance Residuals, Clearly Explained:
https://youtu.be/JC56jS2gVUE
For a complete index of all the StatQuest videos, check out:
https://statquest.org/video-index/
If you'd like to support StatQuest, please consider...
Patreon: https://www.patreon.com/statquest
...or...
YouTube Membership: https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join
...a cool StatQuest t-shirt or sweatshirt (USA/Europe): https://teespring.com/stores/statquest
(everywhere):
https://www.redbubble.com/people/starmer/works/40421224-statquest-double-bam?asc=u&p=t-shirt
...buying one or two of my songs (or go large and get a whole album!)
https://joshuastarmer.bandcamp.com/
...or just donating to StatQuest!
https://www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
https://twitter.com/joshuastarmer
0:00 Awesome song and introduction
0:29 Load and format data
3:54 Dealing with missing data
5:03 Verifying that the data is not imbalanced
6:44 Logistic regression with one independent variable
12:48 Logistic regression with many independent variables
15:13 Graphing the predicted probabilities
#statquest #logistic
Видео Logistic Regression in R, Clearly Explained!!!! канала StatQuest with Josh Starmer
Показать
Комментарии отсутствуют
Информация о видео
26 июля 2018 г. 15:58:24
00:17:15
Другие видео канала
![Logistic Regression Details Pt1: Coefficients](https://i.ytimg.com/vi/vN5cNN2-HWE/default.jpg)
![Logistic Regression in R | Machine Learning Algorithms | Data Science Training | Edureka](https://i.ytimg.com/vi/Z5WKQr4H4Xk/default.jpg)
![StatQuest: Odds and Log(Odds), Clearly Explained!!!](https://i.ytimg.com/vi/ARfXDSkQf1Y/default.jpg)
![GLM Intro - 1 - Linear Models vs. Generalized Linear Models](https://i.ytimg.com/vi/ddCO2714W-o/default.jpg)
![](https://i.ytimg.com/vi/TiDKa9-q1ag/default.jpg)
![Logistic Regression with R: Categorical Response Variable at Two Levels (2018)](https://i.ytimg.com/vi/AVx7Wc1CQ7Y/default.jpg)
![Understanding Predictive Modeling with R](https://i.ytimg.com/vi/_0KwZG5xq7c/default.jpg)
![Multiple Linear Regression in R | R Tutorial 5.3 | MarinStatsLectures](https://i.ytimg.com/vi/q1RD5ECsSB0/default.jpg)
![Régression logistique avec R](https://i.ytimg.com/vi/JrpPd1iGaRY/default.jpg)
![How to Create a Categorical Regression Model in R](https://i.ytimg.com/vi/qst0QGBntxc/default.jpg)
![LOGIT REGRESSION IN R: ODDS RATIO INTERPRETATIONS!!! #1.4](https://i.ytimg.com/vi/mAD5vwdtx0o/default.jpg)
![StatQuest: Odds Ratios and Log(Odds Ratios), Clearly Explained!!!](https://i.ytimg.com/vi/8nm0G-1uJzA/default.jpg)
![Logistic regression in R](https://i.ytimg.com/vi/D1xVEi8PU-A/default.jpg)
![Regresión Logística con RStudio](https://i.ytimg.com/vi/0_c24N7SAYE/default.jpg)
![StatQuest: Logistic Regression](https://i.ytimg.com/vi/yIYKR4sgzI8/default.jpg)
![Logistic Regression in RStudio](https://i.ytimg.com/vi/iyU2CkHrfQk/default.jpg)
![Logistic Regression in R](https://i.ytimg.com/vi/Qi-sVE0SWFc/default.jpg)
![Multilevel modeling (two-levels) in R with 'lme4' package (May, 2019)](https://i.ytimg.com/vi/LzAwEKrn2Mc/default.jpg)
![Generalized Linear Models II](https://i.ytimg.com/vi/LaVyUoTqM90/default.jpg)
![Logistic Regression for Excel](https://i.ytimg.com/vi/8R9byhGAYM4/default.jpg)