diff --git a/model-basics.Rmd b/model-basics.Rmd index 6fedcee..21e1c6d 100644 --- a/model-basics.Rmd +++ b/model-basics.Rmd @@ -192,7 +192,7 @@ sim1_mod <- lm(y ~ x, data = sim1) coef(sim1_mod) ``` -These are exactly the same values we got with `optim()`! Behind the scenes `lm()` doesn't use `optim()` but instead takes advantage of the mathematical structure of linear models. Using some connections between geometry, calculus, and linear algebra, `lm()` actually finds the closest model by (effectively) inverting a matrix. This approach is both faster, and guarantees that there is a global maximum. +These are exactly the same values we got with `optim()`! Behind the scenes `lm()` doesn't use `optim()` but instead takes advantage of the mathematical structure of linear models. Using some connections between geometry, calculus, and linear algebra, `lm()` actually finds the closest model by (effectively) inverting a matrix. This approach is both faster, and guarantees that there is a global minimum. ### Exercises