SSCC - Social Science Computing Cooperative Supporting Statistical Analysis for Research

4.1 Overview

This chapter is designed for individuals who need only a cursory introduction to regression using R. Included is how to specify model formulas, run Ordinary Least Squares and Generalized Linear Models, and examine results and diagnotstics. This does not cover the theory for regressions.

The examples in this chapter use the sleepstudy data frame from the lme4 library and the Cowles data frame from the car library. You will need both of these packages loaded on your computer to run these examples. If you are on an SSCC computer, these packages are already loaded, if you have installed R from the software center.