Skip to main content
HomeR

Intermediate Regression in R

4.3+
23 reviews
Intermediate

Learn to perform linear and logistic regression with multiple explanatory variables.

Start Course for Free
4 hours14 videos50 exercises26,165 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

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

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


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. This course builds on the skills you gained in "Introduction to Regression in R", covering linear and logistic regression with multiple explanatory variables. Through hands-on exercises, you’ll explore the relationships between variables in real-world datasets, Taiwan house prices and customer churn modeling, and more. By the end of this course, you’ll know how to include multiple explanatory variables in a model, understand how interactions between variables affect predictions, and understand how linear and logistic regression work.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Certification Available

Associate Data Scientist in R

Go To Track

Machine Learning Scientist in R

Go To Track

Statistician in R

Go To Track
  1. 1

    Parallel Slopes

    Free

    Extend your linear regression skills to "parallel slopes" regression, with one numeric and one categorical explanatory variable. This is the first step towards conquering multiple linear regression.

    Play Chapter Now
    Parallel slopes linear regression
    50 xp
    Fitting a parallel slopes linear regression
    100 xp
    Interpreting parallel slopes coefficients
    100 xp
    Visualizing each explanatory variable
    100 xp
    Visualizing parallel slopes
    100 xp
    Predicting parallel slopes
    50 xp
    Predicting with a parallel slopes model
    100 xp
    Manually calculating predictions
    100 xp
    Assessing model performance
    50 xp
    Comparing coefficients of determination
    100 xp
    Comparing residual standard error
    100 xp
  2. 3

    Multiple Linear Regression

    See how modeling, and linear regression in particular, makes it easy to work with more than two explanatory variables. Once you've mastered fitting linear regression models, you'll get to implement your own linear regression algorithm.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Certification Available

Associate Data Scientist in R

Go To Track

Machine Learning Scientist in R

Go To Track

Statistician in R

Go To Track

In other tracks

Statistics Fundamentals in RSupervised Machine Learning in R

datasets

Taiwan real estate priceseBay Palm Pilot auctionsBank churn

collaborators

Collaborator's avatar
Maggie Matsui

audio recorded by

Richie Cotton's avatar
Richie Cotton
Richie Cotton HeadshotRichie Cotton

Data Evangelist at DataCamp

Richie is a Data Evangelist at DataCamp. He has been using R since 2004, in the fields of proteomics, debt collection, and chemical health and safety. He has released almost 30 R packages on CRAN and Bioconductor – most famously the assertive suite of packages – as well as creating and contributing to many others. He also has written two books on R programming, Learning R and Testing R Code.
See More

Don’t just take our word for it

*4.3
from 23 reviews
61%
22%
13%
4%
0%
Sort by
  • Dan L.
    3 months

    I had 1 thin in mind about lm(or glm) function: for complex interactions such as "lm(mass_g ~ length_cm * height_cm * species *0, data = fish) " for eample, how can I manully calculate the predictions or get a function ( exact or aproximation ) for the predictions?

  • Vern V.
    7 months

    Like most of the Datacamp short courses, this one is concise and clear. The course covers a lot of ground on Linear and Logistic Regression, but if one has some background then one learns how to get it done with R.

  • Héctor P.
    7 months

    "The course is very interesting. The instructor develops the topics very well and the exercises are very challenging."

  • Li D.
    about 1 year

    Great course for beginners

  • Rudrajit G.
    about 1 year

    It's fun & interesting

"I had 1 thin in mind about lm(or glm) function: for complex interactions such as "lm(mass_g ~ length_cm * height_cm * species *0, data = fish) " for eample, how can I manully calculate the predictions or get a function ( exact or aproximation ) for the predictions?"

Dan L.

"Like most of the Datacamp short courses, this one is concise and clear. The course covers a lot of ground on Linear and Logistic Regression, but if one has some background then one learns how to get it done with R."

Vern V.

""The course is very interesting. The instructor develops the topics very well and the exercises are very challenging.""

Héctor P.

Join over 15 million learners and start Intermediate Regression in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

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