change make_prediction() to model1() (#657)

This commit is contained in:
AlanFeder 2018-06-20 05:09:21 -04:00 committed by Hadley Wickham
parent 37c9d02b29
commit 7bcbe88f5b
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ These are exactly the same values we got with `optim()`! Behind the scenes `lm()
```{r}
measure_distance <- function(mod, data) {
diff <- data$y - make_prediction(mod, data)
diff <- data$y - model1(mod, data)
mean(abs(diff))
}
```