Issue
I would like to check if my model (standardized) residuals are normally distributed.
zh <- ch %>% filter(ch$Region=="1")
model <- lm(ratiopermonth ~ Greenspace, data = zh)
qqline(rstandard(model))
But I got an error message:
plot.new has not been called yet
What is wrong?
Solution
qqline is to be used after qqnorm.
r <- rstandard(model)
qqnorm(r)
qqline(r)
Answered By - Zheyuan Li Answer Checked By - Marie Seifert (Python.Easybugfix Admin)
Post a Comment
Post a Comment