Skip to content

Commit

Permalink
vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 15, 2024
1 parent 3c265fb commit 6a310b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/model_parameters_print.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,11 @@ model_parameters(model, summary = TRUE)

## Including the reference level of categorical variables

Sometimes, it can be helpful to include the reference level of categorical predictors in the table. This can be done by setting `include_reference = TRUE` in the `print()` method. Since the reference level is not a parameter, it is shown in a separate row, with `0` for the coefficient and blank cells for the remaining columns.
Sometimes, it can be helpful to include the reference level of categorical predictors in the table. This can be done by setting `include_reference = TRUE` (either directly in `model_parameters()` or in the `print()` method). Since the reference level is not a parameter, it is shown in a separate row, with `0` for the coefficient and blank cells for the remaining columns.

```{r}
model <- lm(Sepal.Length ~ Petal.Length + Species, data = iris)
mp <- model_parameters(model)
print(mp, include_reference = TRUE)
model_parameters(model, include_reference = TRUE)
```

## Changing number of digits
Expand Down

0 comments on commit 6a310b6

Please sign in to comment.