Alternatively, the update()
function can be used.
lm.fit1 <- update(lm.fit, ~. - age)
Try updating the following model by removing the rm
variable and adding the lstat
variable
Assume that:
MASS
library has been loadedBoston
dataset has been loaded and attached