This commit is contained in:
Ulrik Lyngs
2021-02-08 18:30:06 +01:00
committed by GitHub
parent 46c395a954
commit eb8404ddf9

View File

@@ -338,7 +338,7 @@ The way that R adds the intercept to the model is just by having a column that i
model_matrix(df, y ~ x1 - 1)
```
The model matrix grows in an unsurprising way when you add more variables to the the model:
The model matrix grows in an unsurprising way when you add more variables to the model:
```{r}
model_matrix(df, y ~ x1 + x2)