From 30f223579e748292adffd32052328fd049804add Mon Sep 17 00:00:00 2001 From: Saghir Date: Wed, 3 May 2017 13:45:11 +0100 Subject: [PATCH] model-basics.Rmd: Typos corrected (#558) --- model-basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-basics.Rmd b/model-basics.Rmd index f283f20..8c7e912 100644 --- a/model-basics.Rmd +++ b/model-basics.Rmd @@ -413,7 +413,7 @@ mod1 <- lm(y ~ x1 + x2, data = sim3) mod2 <- lm(y ~ x1 * x2, data = sim3) ``` -When you add variables with `+`, the model will estimate each effect independent of all the others. It's possible to fit the so-called interaction by using `*`. For example, `y ~ x1 * x2` is translated to `y = a_0 + a_1 * a1 + a_2 * a2 + a_12 * a1 * a2`. Note that whenever you use `*`, both the interaction and the individual components are included in the model. +When you add variables with `+`, the model will estimate each effect independent of all the others. It's possible to fit the so-called interaction by using `*`. For example, `y ~ x1 * x2` is translated to `y = a_0 + a_1 * x1 + a_2 * x2 + a_12 * x1 * x2`. Note that whenever you use `*`, both the interaction and the individual components are included in the model. To visualise these models we need two new tricks: