From the course: R Essential Training Part 2: Modeling Data

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Predicting outcomes with logistic regression

Predicting outcomes with logistic regression

From the course: R Essential Training Part 2: Modeling Data

Start my 1-month free trial

Predicting outcomes with logistic regression

- [Instructor] The most common versions of regression assume you have a quantitative a scaled or measured variable for your outcome, say for instance, a person's age or their GPA. But you can also do regression when you have a categorical outcome. And in that case, you're going to use something called logistic regression. The most common of which is binomial logistic regression. Which means you're trying to predict a yes, no, a true false, two possible outcomes on a category. And you're using several different variables to model that. To demonstrate how this works, I'm going to start by loading a few packages including broom, which is for tidying tables and skimmer which has some additional functions for descriptives. Neither of those is essential for doing logistic regression, but they have some extra functions that you may want to use in your own analysis. So I'm going to load those. And then I'm going to come down and…

Contents