Typo fix for model-basics.Rmd (#910)
Corrected "the" to "then" on line 108
This commit is contained in:
parent
36a67dd388
commit
e13a376ef1
|
@ -105,7 +105,7 @@ model1(c(7, 1.5), sim1)
|
|||
|
||||
Next, we need some way to compute an overall distance between the predicted and actual values. In other words, the plot above shows 30 distances: how do we collapse that into a single number?
|
||||
|
||||
One common way to do this in statistics to use the "root-mean-squared deviation". We compute the difference between actual and predicted, square them, average them, and the take the square root. This distance has lots of appealing mathematical properties, which we're not going to talk about here. You'll just have to take my word for it!
|
||||
One common way to do this in statistics to use the "root-mean-squared deviation". We compute the difference between actual and predicted, square them, average them, and then take the square root. This distance has lots of appealing mathematical properties, which we're not going to talk about here. You'll just have to take my word for it!
|
||||
|
||||
```{r}
|
||||
measure_distance <- function(mod, data) {
|
||||
|
|
Loading…
Reference in New Issue