In chapter 3, Sub-Section 3.6.2 Simple Linear regression on page 112, there is a paragraph that states, to quote,
we will now plot medv and lstat along with the least squares regression line using the plot() and albline () functions.
plot(lstat, medv)
This code returns an error Error in plot(lstat, medv) : object 'lstat' not found
there is a missing $ in the code plot(lstat, medv)
The correct code syntax should be > plot(Boston$lstat, Boston$medv)
In chapter 3, Sub-Section 3.6.2 Simple Linear regression on page 112, there is a paragraph that states, to quote,
This code returns an error
Error in plot(lstat, medv) : object 'lstat' not found
there is a missing$
in the codeplot(lstat, medv)
The correct code syntax should be> plot(Boston$lstat, Boston$medv)