From e13a376ef10c279fc35bc8a70d80bf0c71f1367b Mon Sep 17 00:00:00 2001 From: Mohammed Hamdy <62081584+mmhamdy@users.noreply.github.com> Date: Mon, 8 Feb 2021 19:33:01 +0200 Subject: [PATCH] Typo fix for model-basics.Rmd (#910) Corrected "the" to "then" on line 108 --- model-basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-basics.Rmd b/model-basics.Rmd index d50386f..a353785 100644 --- a/model-basics.Rmd +++ b/model-basics.Rmd @@ -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) {