From the course: Tableau and R for Analytics Projects
Unlock this course with a free trial
Join today to access over 25,000 courses taught by industry experts.
Create single- and multiple-variable linear regression models
From the course: Tableau and R for Analytics Projects
Create single- and multiple-variable linear regression models
- [Instructor] Linear regression, which finds the line that best fits a data set is one of the most useful forms of data analysis you can perform. In this movie, I will show you how to perform linear regression, using one or more input variables in R. I have run R in the console and now I can assign data from an external file to a variable and then create a linear regression model. I'll start by having our data one as the variable that will hold my data table or data frame. And then I will assign using a less than sign and a hyphen value from the method read table. And then in parentheses, I need to give the full file path on my system to the file I want to use. So I'll press alt tab to move to the chapter three file of the exercise files archive. And the file that I want to use is sales data dot CSV, so I'll right click that and then click copy as path. I could also press control shift C. So I'll click there, and then…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
- (Locked) Describe linear regression and multiple regression models2m 40s
- (Locked) Create single- and multiple-variable linear regression models6m 24s
- (Locked) Analyze regression variables for significance7m 4s
- (Locked) Visualize data for linear regression in Tableau2m 26s
- (Locked) Add an R regression model to a Tableau viz9m 23s
- (Locked)
-
-
-
-
-