Skip to main content
HomeR

Course

Introduction to Regression in R

IntermediateSkill Level
4.8+
1,355 reviews
Updated 08/2024
Predict housing prices and ad click-through rate by implementing, analyzing, and interpreting regression analysis in R.
Start Course for Free
RProbability & Statistics4 hr14 videos52 Exercises4,050 XP76,320Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

Linear regression and logistic regression are the two most widely used statistical models and act like master keys, unlocking the secrets hidden in datasets. In this course, you’ll gain the skills you need to fit simple linear and logistic regressions. Through hands-on exercises, you’ll explore the relationships between variables in real-world datasets, including motor insurance claims, Taiwan house prices, fish sizes, and more. By the end of this course, you’ll know how to make predictions from your data, quantify model performance, and diagnose problems with model fit.

Prerequisites

Introduction to Data Visualization with ggplot2Introduction to Statistics in R
1

Simple Linear Regression

You’ll learn the basics of this popular statistical model, what regression is, and how linear and logistic regressions differ. You’ll then learn how to fit simple linear regression models with numeric and categorical explanatory variables, and how to describe the relationship between the response and explanatory variables using model coefficients.
Start Chapter
2

Predictions and model objects

In this chapter, you’ll discover how to use linear regression models to make predictions on Taiwanese house prices and Facebook advert clicks. You’ll also grow your regression skills as you get hands-on with model objects, understand the concept of "regression to the mean", and learn how to transform variables in a dataset.
Start Chapter
3

Assessing model fit

In this chapter, you’ll learn how to ask questions of your model to assess fit. You’ll learn how to quantify how well a linear regression model fits, diagnose model problems using visualizations, and understand the leverage and influence of each observation used to create the model.
Start Chapter
4

Simple logistic regression

Introduction to Regression in R
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.8
from 1,355 reviews
84%
15%
1%
0%
0%
  • Jiwon
    16 minutes ago

  • Aydın
    10 hours ago

  • Gustavo Rafael
    yesterday

  • Ho-man
    2 days ago

  • Evelyn Paola
    2 days ago

  • Chun Yu
    2 days ago

Jiwon

Aydın

Gustavo Rafael

FAQs

Is this course suitable for beginners?

Yes. The first chapter starts by defining regression and explaining how linear and logistic models differ, so no prior experience with statistical modeling is required.

What can I do after completing this course?

You will be able to fit linear and logistic regression models in R, make predictions on new data, quantify model performance, and diagnose problems with model fit.

Which tools and datasets are used in this course?

All exercises use R. You will work with real-world datasets covering Taiwanese house prices, Facebook ad clicks, motor insurance claims, and fish sizes.

How does the course handle logistic regression differently from linear regression?

The final chapter focuses on logistic regression for classification tasks, including predicting the likelihood a customer closes a bank account and evaluating results with confusion matrices.

Who is this course designed for?

Anyone who wants to build a foundation in statistical modeling, including data analysts and R users who work with tabular data and want to move beyond summary statistics into predictive modeling.

Join over 19 million learners and start Introduction to Regression in R today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.