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…)
by David Lillis, Ph.D.
Last time we created two variables and added a best-fit regression line to our plot of the variables. Here are the two variables again. (more…)
Today let’s re-create two variables and see how to plot them and include a regression line. We take height to be a variable that describes the heights (in cm) of ten people. (more…)