Teaching Materials for Linear Regression Using R

These files are provided to help others in teaching the material presented in the textbook, "Linear Regression Using R:  An Introduction to Data Modeling," by David J. Lilja, University of Minnesota Libraries Press, 2016 (z.umn.edu/lrur). 

This example course is intended to be taught in a computer lab as an interactive one-credit, one-semester course. 

You are welcome to use this material in your own course. This material is licensed under the Creative Commons Attribution-Noncommercial 4.0 License.  You are free to:

  • Share -- copy and redistribute the material in any medium or format;
  • Adapt -- remix, transform, and build upon the material.
  • Under the following terms:
  • Attribution -- You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial -- You may not use the material for commercial purposes.

Example syllabus

Powerpoint slides

Example laboratory excercises

Lab 1 - Introduction to R, R code used in Lab 1
Lab 2 - Data cleaning
Lab 3 - One-factor models
Lab 4 - Multi-factor models
Lab 5 - Prediction
Lab 6 - Training and testing
Lab 7 - Data segmentation and Kaggle competition
Lab 8 - Final project

 

Some interesting examples