Linear Regression, GLMs and GAMs with R
4.0 (54 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
879 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Linear Regression, GLMs and GAMs with R to your Wishlist.

Add to Wishlist

Linear Regression, GLMs and GAMs with R

How to extend linear regression to specify and estimate generalized linear models and additive models.
4.0 (54 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
879 students enrolled
Last updated 1/2016
Current price: $10 Original price: $40 Discount: 75% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 8 hours on-demand video
  • 3 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I 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).
View Curriculum
  • Students will need to install R and R Commander software but ample instruction for doing so is provided.

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 is the target audience?
  • 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.
Compare to Other Regression Analysis Courses
Curriculum For This Course
69 Lectures
Introduction to Course and to Linear Modeling
12 Lectures 01:14:57

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.

Preview 05:11

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
Assumptions of Linear Modeling (slides, part 2)

Desirable Properties of Beta-hat (slides, part 3)

Example: Estimate Age of Universe (slides)

Example: Estimate Age of Universe Live in R (part 1)

Example: Estimating Age of the Universe (part 3)

Finish Example and More Notes on Linear Modeling

Linear Modeling Exercises
Generalized Linear Models (GLMs) Part 1
9 Lectures 01:00:00

In statistics, the generalized linear model (GLM) is a flexible generalization of ordinary linear regression that allows for response variables that have error distribution models other than a normal distribution. The GLM generalizes linear regression by allowing the linear model to be related to the response variable via a link function and by allowing the magnitude of the variance of each measurement to be a function of its predicted value.

Introduction to GLMs (slides, part 1)

Introduction to GLMs (slides, part 2)

Introduction to GLMs (slides, part 3)

Introduction to GLMs (slides, part 4)

Proportion data has values that fall between zero and one. Naturally, it would be nice to have the predicted values also fall between zero and one. One way to accomplish this is to use a generalized linear model (glm) with a logit link and the binomial family.

Preview 07:50

Example: Binomial (Proportion) Model with Heart Disease (part 2)

Example: Binomial (Proportion) Model with Heart Disease (part 3)

GLM Exercises
Generalized Linear Models Part 2
11 Lectures 01:05:41
Current Agenda

Linear Regression Exercise Solutions (part 1)

Linear Regression Exercise Solutions (part 2)

GLM Exercise Solutions (part 3)

In statistics, Poisson regression is a form of regression analysis used to model count data and contingency tables. Poisson regression assumes the response variable Y has a Poisson distribution, and assumes the logarithm of its expected value can be modeled by a linear combination of unknown parameters. A Poisson regression model is sometimes known as a log-linear model, especially when used to model contingency tables.

Poisson regression models are generalized linear models with the logarithm as the (canonical) link function, and the Poisson distribution function as the assumed probability distribution of the response.

Example: Poisson Model with Count Data (part 1)

Example: Poisson Model with Count Data (part 2)

Exercise: GLM to GAM

Log-linear analysis is a technique used in statistics to examine the relationship between more than two categorical variables.

Example: Log-Linear Model for Categorical Data

More on Deviance and Overdispersion (slides)
Generalized Additive Models Explained
22 Lectures 02:38:16

In statistics, a generalized additive model (GAM) is a generalized linear model in which the linear predictor depends linearly on unknown smooth functions of some predictor variables, and interest focuses on inference about these smooth functions. GAMs were originally developed by Trevor Hastie and Robert Tibshirani to blend properties of generalized linear models with additive models.

What are GAMS? (Crawley, slides, part 1)

What are GAMs? (Crawley, slides, part 2)

Demonstrate GAM Ozone Data (part 1)

Demonstrate GAM Ozone Data (part 2)

What are GAMs? (Wood, slides, part 1)

Univariate Polynomial GAMs (Wood, slides, part 2)

Univariate Polynomial GAMs (Wood, slides, part 3)

GAMs as 4th Order Polynomials (slides, part 1)

GAMs as 4th Order Polynomials (slides, part 2)

GAMs as Regression Splines (slides)

Cubic Splines (slides, part 1)

Cubic Splines (slides, part 2)

Function to Establish Basis for Spline (slides)

Build-a-GAM (slides, part 1)

Build-a-GAM (slides, part 2)

Build-a-GAM (slides, part 3)

Build-a-GAM Cross Validation

Bivariate GAMs with 2 Explanatory Independent Variables (slides, part 1)

Bivariate GAMs with 2 Explanatory Independent Variables (slides, part 2)

Detailed GAM Examples
15 Lectures 01:55:37
Current Agenda (slides)

Cherry Trees and Finer Control (slides, part 1)

Finer Control of GAM (slides, part 2)

Using Smoothers with More than One Predictor (slides)

More on Alternative Smoothing Bases (slides)

Parametric Model Terms (slides)

Example: Brain Imaging (part 2)

Example: Brain Imaging (part 3)

Example: Brain Imaging (part 4)

Example: Brain Imaging (part 5)

Example: Air Pollution in Chicago (part 1)

Example: Air Pollution in Chicago (part 2)

Air Pollution in Chicago (part 3)

More Exercises
About the Instructor
Geoffrey Hubona, Ph.D.
4.0 Average rating
1,493 Reviews
12,681 Students
28 Courses
Associate Professor of Information Systems

Dr. Geoffrey Hubona held full-time tenure-track, and tenured, assistant and associate professor faculty positions at 3 major state universities in the Eastern United States from 1993-2010. Currently, he is a visiting associate professor of MIS at Texas A&M International University. In these positions, he taught dozens of various statistics, business information systems, and computer science courses to undergraduate, master's and Ph.D. students. He earned a Ph.D. in Business Administration (Information Systems and Computer Science) from the University of South Florida (USF) in Tampa, FL; an MA in Economics, also from USF; an MBA in Finance from George Mason University in Fairfax, VA; and a BA in Psychology from the University of Virginia in Charlottesville, VA. He is the founder of the Georgia R School (2010-2014) and of R-Courseware (2014-Present), online educational organizations that teach research methods and quantitative analysis techniques. These research methods techniques include linear and non-linear modeling, multivariate methods, data mining, programming and simulation, and structural equation modeling and partial least squares (PLS) path modeling.