Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Linear Regression, GLMs and GAMs with R
Rating: 4.3 out of 5(266 ratings)
2,497 students

Linear Regression, GLMs and GAMs with R

How to extend linear regression to specify and estimate generalized linear models and additive models.
Last updated 9/2020
English

What you'll learn

  • Understand the assumptions of ordinary least squares (OLS) linear regression.
  • Specify, estimate and interpret linear (regression) models using R.
  • Understand how the assumptions of OLS regression are modified (relaxed) in order to specify, estimate and interpret generalized linear models (GLMs).
  • Specify, estimate and interpret GLMs using R.
  • Understand the mechanics and limitations of specifying, estimating and interpreting generalized additive models (GAMs).

Course content

5 sections69 lectures7h 54m total length
  • Introduction to Course1:51
  • Preliminaries: Installing R, RStudio, R Commander, Course Materials and Exercise5:16
  • Beginning Agenda (slides)8:18
  • What is Linear Modeling? (slides, part 1)5:11

    The term "linear" refers to the fact that we are fitting a line. The term model refers to the equation that summarizes the line that we fit. The term "linear model" is often taken as synonymous with linear regression model.

  • Assumptions of Linear Modeling (slides, part 2)6:08

    Assumptions of Linear Models (regression):

    1. The residuals are independent
    2. The residuals are normally distributed
    3. The residuals have a mean of 0 at all values of X
    4. The residuals have constant variance
  • Desirable Properties of Beta-hat (slides, part 3)7:19
  • Example: Estimate Age of Universe (slides)4:39
  • Example: Estimate Age of Universe Live in R (part 1)7:44
  • Example: Estimate Age of Universe Live in R (part 2)9:22
  • Example: Estimating Age of the Universe (part 3)8:50
  • Finish Example and More Notes on Linear Modeling8:31
  • Linear Modeling Exercises1:48

Requirements

  • Students will need to install R and R Commander software but ample instruction for doing so is provided.

Description

Linear Regression, GLMs and GAMs with R demonstrates how to use R to extend the basic assumptions and constraints of linear regression to specify, model, and interpret the results of generalized linear (GLMs) and generalized additive (GAMs) models. The course demonstrates the estimation of GLMs and GAMs by working through a series of practical examples from the book Generalized Additive Models: An Introduction with R by Simon N. Wood (Chapman & Hall/CRC Texts in Statistical Science, 2006). Linear statistical models have a univariate response modeled as a linear function of predictor variables and a zero mean random error term. The assumption of linearity is a critical (and limiting) characteristic. Generalized linear models (GLMs) relax this assumption of linearity. They permit the expected value of the response variable to be a smoothed (e.g. non-linear) monotonic function of the linear predictors. GLMs also relax the assumption that the response variable is normally distributed by allowing for many distributions (e.g. normal, poisson, binomial, log-linear, etc.). Generalized additive models (GAMs) are extensions of GLMs. GAMs allow for the estimation of regression coefficients that take the form of non-parametric smoothers. Nonparametric smoothers like lowess (locally weighted scatterplot smoothing) fit a smooth curve to data using localized subsets of the data. This course provides an overview of modeling GLMs and GAMs using R. GLMs, and especially GAMs, have evolved into standard statistical methodologies of considerable flexibility. The course addresses recent approaches to modeling, estimating and interpreting GAMs. The focus of the course is on modeling and interpreting GLMs and especially GAMs with R. Use of the freely available R software illustrates the practicalities of linear, generalized linear, and generalized additive models.

Who this course is for:

  • This course would be useful for anyone involved with linear modeling estimation, including graduate students and/or working professionals in quantitative modeling and data analysis.
  • The focus, and majority of content, of this course is on generalized additive modeling. Anyone who wishes to learn how to specify, estimate and interpret GAMs would especially benefit from this course.