And another one
This commit is contained in:
parent
864ac2761e
commit
2e3ee662c0
|
@ -683,7 +683,7 @@ Finally, we could spot outliers in our data by examining the residuals of the mo
|
|||
|
||||
```{r echo = FALSE, fig.width = 3, fig.show='hold'}
|
||||
diamond_mod <- lm(y ~ x, data = diamonds3)
|
||||
resids <- augment(diamond_mod)
|
||||
resids <- broom::augment(diamond_mod)
|
||||
|
||||
ggplot(resids) +
|
||||
geom_histogram(aes(x = .resid), binwidth = 0.1)
|
||||
|
|
Loading…
Reference in New Issue