Linear Regression using R

Michael Galarnyk
Jan 30, 2017 · 1 min read
Univariate Linear Regression using R

Univariate linear regression assumes the relationship between the dependent variable (y in the case of this tutorial) and the independent variable (x in this case) is linear. The video above demonstrates how to perform a basic linear regression using R. While the video shows the basics, I figured I would write a post to provide an R file so users can copy and paste the code, follow along with the video if needed, and provide another forum to answer questions. The .csv file used in this tutorial is located here on my github.

Please let me know if you have any questions! You can either leave a comment here or on youtube (please subscribe if you can)!

Michael Galarnyk

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade