Linear Models in R: Improving Our Regression Model

April 23rd, 2015 by

by David Lillis, Ph.D.Stage 2

Last time we created two variables and used the lm() command to perform a least squares regression on them, and diagnosing our regression using the plot() command.

Just as we did last time, we perform the regression using lm(). This time we store it as an object M. (more…)