Skip to content

Commit

Permalink
fix typo in logistic_reg() documentation (#1218)
Browse files Browse the repository at this point in the history
Co-authored-by: simonpcouch <simonpatrickcouch@gmail.com>
  • Loading branch information
corybrunson and simonpcouch authored Nov 7, 2024
1 parent 002837e commit a212f78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions man/details_logistic_reg_glm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/rmd/logistic_reg_glm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ logistic_reg() %>%
To use a non-default `family` and/or `link`, pass in as an argument to `set_engine()`:

```{r glm-reg-engine}
linear_reg() %>%
logistic_reg() %>%
set_engine("glm", family = stats::binomial(link = "probit")) %>%
translate()
```
Expand Down
8 changes: 4 additions & 4 deletions man/rmd/logistic_reg_glm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This engine has no tuning parameters but you can set the `family` parameter (and
## Translation from parsnip to the original package


```r
``` r
logistic_reg() %>%
set_engine("glm") %>%
translate()
Expand All @@ -29,14 +29,14 @@ logistic_reg() %>%
To use a non-default `family` and/or `link`, pass in as an argument to `set_engine()`:


```r
linear_reg() %>%
``` r
logistic_reg() %>%
set_engine("glm", family = stats::binomial(link = "probit")) %>%
translate()
```

```
## Linear Regression Model Specification (regression)
## Logistic Regression Model Specification (classification)
##
## Engine-Specific Arguments:
## family = stats::binomial(link = "probit")
Expand Down

0 comments on commit a212f78

Please sign in to comment.