From b24698ed6d23a9aabc0f800f7a7df4ba32373811 Mon Sep 17 00:00:00 2001 From: simonpcouch Date: Thu, 7 Nov 2024 14:21:45 -0600 Subject: [PATCH] `knit_engine_docs()` and `document()` --- man/details_logistic_reg_glm.Rd | 4 ++-- man/rmd/logistic_reg_glm.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/details_logistic_reg_glm.Rd b/man/details_logistic_reg_glm.Rd index d56803e06..b632fcc2b 100644 --- a/man/details_logistic_reg_glm.Rd +++ b/man/details_logistic_reg_glm.Rd @@ -35,12 +35,12 @@ parameter (and/or \code{link}) as an engine argument (see below). To use a non-default \code{family} and/or \code{link}, pass in as an argument to \code{set_engine()}: -\if{html}{\out{
}}\preformatted{linear_reg() \%>\% +\if{html}{\out{
}}\preformatted{logistic_reg() \%>\% set_engine("glm", family = stats::binomial(link = "probit")) \%>\% translate() }\if{html}{\out{
}} -\if{html}{\out{
}}\preformatted{## Linear Regression Model Specification (regression) +\if{html}{\out{
}}\preformatted{## Logistic Regression Model Specification (classification) ## ## Engine-Specific Arguments: ## family = stats::binomial(link = "probit") diff --git a/man/rmd/logistic_reg_glm.md b/man/rmd/logistic_reg_glm.md index c7942c741..5687e442e 100644 --- a/man/rmd/logistic_reg_glm.md +++ b/man/rmd/logistic_reg_glm.md @@ -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() @@ -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")