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. Here are the data again. height = c(176, 154, 138, 196, 132, 176, 181, 169, 150, 175) bodymass…
Month: September 2018
Quick start with R: Diagnosing our regression model (Part 28)
Last time we created two variables and used the lm() command to perform a least squares regression on them, treating one of them as the dependent variable and the other as the independent variable. Here they are again. height = c(176, 154, 138, 196, 132,…