Introduction à la régression dans R
Richie Cotton
Data Evangelist at DataCamp
Brème commune : le modèle « exemplaire »
mdl_bream <- lm(mass_g ~ length_cm, data = bream)

Perche : le modèle « inapproprié »
mdl_perch <- lm(mass_g ~ length_cm, data = perch)

Brème commune

Perche

Brème commune

Perche



library(ggplot2)
library(ggfortify)
autoplot(model_object, which = ???)
Valeurs pour which
1 résidus par rapport aux valeurs ajustées2 Graphique Q-Q3 échelle-positionautoplot(
mdl_perch,
which = 1:3,
nrow = 3,
ncol = 1
)

Introduction à la régression dans R