I would like to check if my model (standardized) residuals are normally distributed.
model <- lm(ratiopermonth ~ Greenspace, data = mydata)
qqline(rstandard(model))
But I got an error message:
plot.new has not been called yet
What is wrong?
qqline
is to be used after qqnorm
.
r <- rstandard(model)
qqnorm(r)
qqline(r)