Pengantar Regresi di R
Richie Cotton
Data Evangelist at DataCamp
Bream: model "bagus"
mdl_bream <- lm(mass_g ~ length_cm, data = bream)

Perch: model "buruk"
mdl_perch <- lm(mass_g ~ length_cm, data = perch)

Bream

Perch

Bream

Perch



library(ggplot2)
library(ggfortify)
autoplot(model_object, which = ???)
Nilai untuk which
1 sisa vs nilai taksiran2 plot Q-Q3 skala-lokasiautoplot(
mdl_perch,
which = 1:3,
nrow = 3,
ncol = 1
)

Pengantar Regresi di R