From the course: Tableau and R for Analytics Projects

Unlock the full course today

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

Create a logistic regression model in R

Create a logistic regression model in R

From the course: Tableau and R for Analytics Projects

Start my 1-month free trial

Create a logistic regression model in R

- [Instructor] When you collect data about your customers or another group you'd like to examine, you can build a model that uses past behavior to determine which of two outcomes is more likely for future customers. No model will be completely accurate but R can tune the model so it best describes your past data. In this movie I will show you how to create a logistic regression model in R. I have started a new instance of R, and I have a blank R console ready to go. The first thing I need to do is read in data from an external file and I will assign that to a vector called a train, T-R-A-I-N. As you might guess this is a vector that we will train our model on. So I'll type the assignment operator which is the less than sign followed by a hyphen, and then I'll use the read table method, so read.table followed by a left parentheses and a single quote. Now I need to give the full path on my computer to the file that…

Contents