Skip to main content

Generalized Linear Models in R

The Generalized Linear Model course expands your regression toolbox to include logistic and Poisson regression.

Start Course for Free
4 Hours14 Videos51 Exercises13,611 Learners4050 XPStatistician Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Linear regression serves as a workhorse of statistics, but cannot handle some types of complex data. A generalized linear model (GLM) expands upon linear regression to include non-normal distributions including binomial and count data. Throughout this course, you will expand your data science toolkit to include GLMs in R. As part of learning about GLMs, you will learn how to fit model binomial data with logistic regression and count data with Poisson regression. You will also learn how to understand these results and plot them with ggplot2.

  1. 1

    GLMs, an extension of your regression toolbox


    This chapter teaches you how generalized linear models are an extension of other models in your data science toolbox. The chapter also uses Poisson regression to introduce generalize linear models.

    Play Chapter Now
    Limitations of linear models
    50 xp
    Assumptions of linear models
    50 xp
    Refresher on fitting linear models
    100 xp
    Poisson regression
    50 xp
    Fitting a Poisson regression in R
    100 xp
    Comparing linear and Poisson regression
    100 xp
    Intercepts-comparisons versus means
    100 xp
    Basic lm() functions with glm()
    50 xp
    Applying summary(), print(), and tidy() to glm
    100 xp
    Extracting coefficients from glm()
    100 xp
    Predicting with glm()
    100 xp

In the following tracks



dcamposlizDavid CamposchesterChester IsmayshoninouyeShon Inouye
Richard Erickson Headshot

Richard Erickson

Data Scientist

Richard helps people to experience and understand their increasingly numerical world. For his day job he develops new quantitative methods for monitoring and controlling invasive species as well as helping other scientists analyze and understand their data. He has worked on diverse datasets ranging from continent wide species distributions to pesticides in playa wetlands. After hours, he teaches SCUBA Diving as a NAUI Instructor. He has been a member of "UserR" since 2007.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA