diff --git a/dev/CODE_OF_CONDUCT.html b/dev/CODE_OF_CONDUCT.html index d99d520..06cf0c8 100644 --- a/dev/CODE_OF_CONDUCT.html +++ b/dev/CODE_OF_CONDUCT.html @@ -112,7 +112,7 @@

Attribution -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/dev/LICENSE-text.html b/dev/LICENSE-text.html index be71b4b..defada1 100644 --- a/dev/LICENSE-text.html +++ b/dev/LICENSE-text.html @@ -47,7 +47,7 @@

License

diff --git a/dev/LICENSE.html b/dev/LICENSE.html index 0b199b2..5a80d24 100644 --- a/dev/LICENSE.html +++ b/dev/LICENSE.html @@ -51,7 +51,7 @@

MIT License

diff --git a/dev/articles/discrim.html b/dev/articles/discrim.html index cf8ce3f..4cf57cb 100644 --- a/dev/articles/discrim.html +++ b/dev/articles/discrim.html @@ -135,7 +135,7 @@

Introduction to discrim

diff --git a/dev/articles/index.html b/dev/articles/index.html index c163a55..3be6dc1 100644 --- a/dev/articles/index.html +++ b/dev/articles/index.html @@ -49,7 +49,7 @@

All vignettes

diff --git a/dev/authors.html b/dev/authors.html index de44557..1924f8a 100644 --- a/dev/authors.html +++ b/dev/authors.html @@ -79,7 +79,7 @@

Citation

diff --git a/dev/deps/Source_Code_Pro-0.4.9/font.css b/dev/deps/Source_Code_Pro-0.4.9/font.css index 215be08..9e0a9d2 100644 --- a/dev/deps/Source_Code_Pro-0.4.9/font.css +++ b/dev/deps/Source_Code_Pro-0.4.9/font.css @@ -5,7 +5,7 @@ font-weight: 400; font-display: swap; src: url(HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DMyQtMRrTEUc.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; + unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { @@ -50,7 +50,7 @@ font-weight: 400; font-display: swap; src: url(HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DMyQtMdrTEUc.woff2) format('woff2'); - unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { @@ -59,5 +59,5 @@ font-weight: 400; font-display: swap; src: url(HI_diYsKILxRpg3hIP6sJ7fM7PqPMcMnZFqUwX28DMyQtMlrTA.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } diff --git a/dev/deps/Source_Sans_Pro-0.4.9/font.css b/dev/deps/Source_Sans_Pro-0.4.9/font.css index a9db069..a06e104 100644 --- a/dev/deps/Source_Sans_Pro-0.4.9/font.css +++ b/dev/deps/Source_Sans_Pro-0.4.9/font.css @@ -5,7 +5,7 @@ font-weight: 400; font-display: swap; src: url(6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7qsDJT9g.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; + unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { @@ -50,7 +50,7 @@ font-weight: 400; font-display: swap; src: url(6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJT9g.woff2) format('woff2'); - unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { @@ -59,7 +59,7 @@ font-weight: 400; font-display: swap; src: url(6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDI.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { @@ -68,7 +68,7 @@ font-weight: 600; font-display: swap; src: url(6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdh18Smxg.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; + unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { @@ -113,7 +113,7 @@ font-weight: 600; font-display: swap; src: url(6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdi18Smxg.woff2) format('woff2'); - unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { @@ -122,7 +122,7 @@ font-weight: 600; font-display: swap; src: url(6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18Q.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { @@ -131,7 +131,7 @@ font-weight: 400; font-display: swap; src: url(6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; + unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { @@ -176,7 +176,7 @@ font-weight: 400; font-display: swap; src: url(6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2) format('woff2'); - unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { @@ -185,7 +185,7 @@ font-weight: 400; font-display: swap; src: url(6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { @@ -194,7 +194,7 @@ font-weight: 600; font-display: swap; src: url(6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhduz8A.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; + unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { @@ -239,7 +239,7 @@ font-weight: 600; font-display: swap; src: url(6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRduz8A.woff2) format('woff2'); - unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { @@ -248,5 +248,5 @@ font-weight: 600; font-display: swap; src: url(6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } diff --git a/dev/index.html b/dev/index.html index 3aed231..d29af4b 100644 --- a/dev/index.html +++ b/dev/index.html @@ -243,7 +243,7 @@

Dev status

diff --git a/dev/news/index.html b/dev/news/index.html index 682ce07..42e8b96 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -88,7 +88,7 @@

discrim 0.0.1 diff --git a/dev/pkgdown.js b/dev/pkgdown.js index 9757bf9..1a99c65 100644 --- a/dev/pkgdown.js +++ b/dev/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 0197764..9146058 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -1,9 +1,9 @@ pandoc: 3.1.11 -pkgdown: 2.1.0 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: articles/discrim: discrim.html -last_built: 2024-08-05T10:14Z +last_built: 2024-10-16T13:03Z urls: reference: https://discrim.tidymodels.org/reference article: https://discrim.tidymodels.org/articles diff --git a/dev/reference/discrim-package.html b/dev/reference/discrim-package.html index 82597f9..96d6d96 100644 --- a/dev/reference/discrim-package.html +++ b/dev/reference/discrim-package.html @@ -129,7 +129,7 @@

Author< diff --git a/dev/reference/discrim_helpers.html b/dev/reference/discrim_helpers.html index 6cfa73f..464ca02 100644 --- a/dev/reference/discrim_helpers.html +++ b/dev/reference/discrim_helpers.html @@ -56,7 +56,7 @@

Usage diff --git a/dev/reference/fit_regularized_linear.html b/dev/reference/fit_regularized_linear.html index e9c6948..2945d41 100644 --- a/dev/reference/fit_regularized_linear.html +++ b/dev/reference/fit_regularized_linear.html @@ -81,7 +81,7 @@

Value

diff --git a/dev/reference/frac_common_cov.html b/dev/reference/frac_common_cov.html index 3f5ba9c..15a961b 100644 --- a/dev/reference/frac_common_cov.html +++ b/dev/reference/frac_common_cov.html @@ -97,7 +97,7 @@

Examples -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/dev/reference/index.html b/dev/reference/index.html index fefd7ef..7e608ec 100644 --- a/dev/reference/index.html +++ b/dev/reference/index.html @@ -66,7 +66,7 @@

All functions -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/dev/reference/parabolic-1.png b/dev/reference/parabolic-1.png index a8fc2ee..2b8d834 100644 Binary files a/dev/reference/parabolic-1.png and b/dev/reference/parabolic-1.png differ diff --git a/dev/reference/parabolic.html b/dev/reference/parabolic.html index 1fc6167..98c92a2 100644 --- a/dev/reference/parabolic.html +++ b/dev/reference/parabolic.html @@ -55,12 +55,14 @@

Details

Examples

-
data(parabolic)
+    
if (rlang::is_installed("ggplot2")) {
+  data(parabolic)
 
-library(ggplot2)
-ggplot(parabolic, aes(x = X1, y = X2, col = class)) +
-  geom_point(alpha = .5) +
-  theme_bw()
+  library(ggplot2)
+  ggplot(parabolic, aes(x = X1, y = X2, col = class)) +
+    geom_point(alpha = .5) +
+    theme_bw()
+}
 
 
 
@@ -76,7 +78,7 @@

Examples -

Site built with pkgdown 2.1.0.

+

Site built with pkgdown 2.1.1.

diff --git a/dev/search.json b/dev/search.json index 7c3a9a2..94cd0c2 100644 --- a/dev/search.json +++ b/dev/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement codeofconduct@posit.co. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://discrim.tidymodels.org/dev/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2023 discrim authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://discrim.tidymodels.org/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Emil Hvitfeldt. Author, maintainer. Max Kuhn. Author. . Copyright holder, funder.","code":""},{"path":"https://discrim.tidymodels.org/dev/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hvitfeldt E, Kuhn M (2024). discrim: Model Wrappers Discriminant Analysis. R package version 1.0.1.9000, https://discrim.tidymodels.org/, https://github.com/tidymodels/discrim.","code":"@Manual{, title = {discrim: Model Wrappers for Discriminant Analysis}, author = {Emil Hvitfeldt and Max Kuhn}, year = {2024}, note = {R package version 1.0.1.9000, https://discrim.tidymodels.org/}, url = {https://github.com/tidymodels/discrim}, }"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"discrim","dir":"","previous_headings":"","what":"Model Wrappers for Discriminant Analysis","title":"Model Wrappers for Discriminant Analysis","text":"discrim contains simple bindings enable parsnip package fit various discriminant analysis models, Linear discriminant analysis (LDA, simple regularized) Quadratic discriminant analysis (QDA, simple regularized) Regularized discriminant analysis (RDA, via Friedman (1989)) Flexible discriminant analysis (FDA) using MARS features Naive Bayes models","code":""},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Model Wrappers for Discriminant Analysis","text":"can install released version discrim CRAN : development version GitHub :","code":"install.packages(\"discrim\") # install.packages(\"pak\") pak::pak(\"tidymodels/discrim\")"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"available-engines","dir":"","previous_headings":"","what":"Available Engines","title":"Model Wrappers for Discriminant Analysis","text":"discrim package provides engines models following table.","code":""},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Model Wrappers for Discriminant Analysis","text":"simple model using simulated two-class data set contained package:","code":"library(discrim) parabolic_grid <- expand.grid(X1 = seq(-5, 5, length = 100), X2 = seq(-5, 5, length = 100)) fda_mod <- discrim_flexible(num_terms = 3) %>% # increase `num_terms` to find smoother boundaries set_engine(\"earth\") %>% fit(class ~ ., data = parabolic) parabolic_grid$fda <- predict(fda_mod, parabolic_grid, type = \"prob\")$.pred_Class1 library(ggplot2) ggplot(parabolic, aes(x = X1, y = X2)) + geom_point(aes(col = class), alpha = .5) + geom_contour(data = parabolic_grid, aes(z = fda), col = \"black\", breaks = .5) + theme_bw() + theme(legend.position = \"top\") + coord_equal()"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"Model Wrappers for Discriminant Analysis","text":"project released Contributor Code Conduct. contributing project, agree abide terms. questions discussions tidymodels packages, modeling, machine learning, please post RStudio Community. think encountered bug, please submit issue. Either way, learn create share reprex (minimal, reproducible example), clearly communicate code. Check details contributing guidelines tidymodels packages get help.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":null,"dir":"Reference","previous_headings":"","what":"parsnip methods for discriminant analysis — discrim-package","title":"parsnip methods for discriminant analysis — discrim-package","text":"discrim offers various functions fit classification models via discriminant analysis.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"parsnip methods for discriminant analysis — discrim-package","text":"model function works tidymodels infrastructure model can resampled, tuned, tided, etc.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"example","dir":"Reference","previous_headings":"","what":"Example","title":"parsnip methods for discriminant analysis — discrim-package","text":"example, ’ll use flexible discriminant analysis model Hastie, Tibshirani, Buja (1994). fits model uses features generated multivariate adaptive regression spline (MARS) model Friedman (1991). able create class boundaries polygons built-feature selection. parabolic data modeldata package used illustrate: create model, discrim_flexible() function used along engine \"earth\" (contains methods use MARS model). ’ll set number MARS terms use can tuned via methods tune package. fit() function estimates model. fit_xy() can used one wish use formula method. Now let’s plot class boundary predicting grid points creating contour plot 50% probability cutoff.","code":"library(tidymodels) library(discrim) tidymodels_prefer() theme_set(theme_bw()) data(parabolic, package = \"modeldata\") fda_mod <- discrim_flexible(num_terms = 3) %>% # increase `num_terms` to find smoother boundaries set_engine(\"earth\") %>% fit(class ~ ., data = parabolic) fda_mod ## parsnip model object ## ## Call: ## mda::fda(formula = class ~ ., data = data, method = earth::earth, ## nprune = ~3) ## ## Dimension: 1 ## ## Percent Between-Group Variance Explained: ## v1 ## 100 ## ## Training Misclassification Error: 0.136 ( N = 500 ) parabolic_grid <- expand.grid(X1 = seq(-5, 5, length = 100), X2 = seq(-5, 5, length = 100)) parabolic_grid <- parabolic_grid %>% bind_cols( predict(fda_mod, parabolic_grid, type = \"prob\") ) ggplot(parabolic, aes(x = X1, y = X2)) + geom_point(aes(col = class), alpha = .5) + geom_contour(data = parabolic_grid, aes(z = .pred_Class1), col = \"black\", breaks = .5) + coord_equal()"},{"path":[]},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"parsnip methods for discriminant analysis — discrim-package","text":"Maintainer: Emil Hvitfeldt emil.hvitfeldt@posit.co (ORCID) Authors: Max Kuhn max@posit.co (ORCID) contributors: Posit Software, PBC [copyright holder, funder]","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim_helpers.html","id":null,"dir":"Reference","previous_headings":"","what":"Internal wrapper functions — klar_bayes_wrapper","title":"Internal wrapper functions — klar_bayes_wrapper","text":"Internal wrapper functions","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim_helpers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Internal wrapper functions — klar_bayes_wrapper","text":"","code":"klar_bayes_wrapper(x, y, ...) pred_wrapper(object, new_data, ...)"},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for sparsediscrim models — fit_regularized_linear","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"Wrapper sparsediscrim models","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"","code":"fit_regularized_linear(x, y, method = \"diagonal\", ...) fit_regularized_quad(x, y, method = \"diagonal\", ...)"},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"x matrix data frame. y factor column. method character string. ... currently used.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"sparsediscrim object","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":null,"dir":"Reference","previous_headings":"","what":"Parameter objects for Regularized Discriminant Models — frac_common_cov","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"discrim_regularized() describes effect frac_common_cov() frac_identity(). smoothness() alias adjust parameter stats::density().","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"","code":"frac_common_cov(range = c(0, 1), trans = NULL) frac_identity(range = c(0, 1), trans = NULL) smoothness(range = c(0.5, 1.5), trans = NULL)"},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"range two-element vector holding defaults smallest largest possible values, respectively. trans trans object scales package, scales::log10_trans() scales::reciprocal_trans(). provided, default used matches units used range. transformation, NULL.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"function classes \"quant_param\" \"param\"","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"parameters can modulate RDA model go linear quadratic class boundaries.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"","code":"frac_common_cov() #> Fraction of the Common Covariance Matrix (quantitative) #> Range: [0, 1]"},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":null,"dir":"Reference","previous_headings":"","what":"Parabolic class boundary data — parabolic","title":"Parabolic class boundary data — parabolic","text":"Parabolic class boundary data","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parabolic class boundary data — parabolic","text":"parabolic data frame","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parabolic class boundary data — parabolic","text":"data simulated. two correlated predictors two classes factor outcome.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parabolic class boundary data — parabolic","text":"","code":"data(parabolic) library(ggplot2) ggplot(parabolic, aes(x = X1, y = X2, col = class)) + geom_point(alpha = .5) + theme_bw()"},{"path":[]},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-101","dir":"Changelog","previous_headings":"","what":"discrim 1.0.1","title":"discrim 1.0.1","text":"CRAN release: 2023-03-08 Updated Authors@R.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-100","dir":"Changelog","previous_headings":"","what":"discrim 1.0.0","title":"discrim 1.0.0","text":"CRAN release: 2022-06-23 Case weights enabled [discrim_flexible()] [discrim_linear()] (\"mda\" engine).","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-020","dir":"Changelog","previous_headings":"","what":"discrim 0.2.0","title":"discrim 0.2.0","text":"CRAN release: 2022-03-09 Model definition functions (e.g. discrim_linear()) moved parsnip package.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-013","dir":"Changelog","previous_headings":"","what":"discrim 0.1.3","title":"discrim 0.1.3","text":"CRAN release: 2021-07-21 LDA engine added shrunken discriminant analysis method Ahdesmaki Strimmer (2010) engine = \"sda\". LDA QDA models now engine fits several regularized discriminant models sparsediscrim package.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-012","dir":"Changelog","previous_headings":"","what":"discrim 0.1.2","title":"discrim 0.1.2","text":"CRAN release: 2021-05-28 Added discrim_quad() Fixed bug parameter definitions (#19) Re-licensed package GPL-2 MIT. See consent copyright holders .","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-011","dir":"Changelog","previous_headings":"","what":"discrim 0.1.1","title":"discrim 0.1.1","text":"CRAN release: 2020-10-28 Small updates discrim can run parallel using psock clusters (#13) Updates encoding requirements related current version parsnip.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-010","dir":"Changelog","previous_headings":"","what":"discrim 0.1.0","title":"discrim 0.1.0","text":"CRAN release: 2020-07-07 Small updates work new parsnip version.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-002","dir":"Changelog","previous_headings":"","what":"discrim 0.0.2","title":"discrim 0.0.2","text":"CRAN release: 2020-04-09 Added naivebayes engine naive_Bayes() (#5). Change new parsnip version 0.1.0.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-001","dir":"Changelog","previous_headings":"","what":"discrim 0.0.1","title":"discrim 0.0.1","text":"CRAN release: 2019-10-11 First CRAN version","code":""}] +[{"path":[]},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement codeofconduct@posit.co. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://discrim.tidymodels.org/dev/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://discrim.tidymodels.org/dev/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2023 discrim authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://discrim.tidymodels.org/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Emil Hvitfeldt. Author, maintainer. Max Kuhn. Author. . Copyright holder, funder.","code":""},{"path":"https://discrim.tidymodels.org/dev/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hvitfeldt E, Kuhn M (2024). discrim: Model Wrappers Discriminant Analysis. R package version 1.0.1.9000, https://discrim.tidymodels.org/, https://github.com/tidymodels/discrim.","code":"@Manual{, title = {discrim: Model Wrappers for Discriminant Analysis}, author = {Emil Hvitfeldt and Max Kuhn}, year = {2024}, note = {R package version 1.0.1.9000, https://discrim.tidymodels.org/}, url = {https://github.com/tidymodels/discrim}, }"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"discrim","dir":"","previous_headings":"","what":"Model Wrappers for Discriminant Analysis","title":"Model Wrappers for Discriminant Analysis","text":"discrim contains simple bindings enable parsnip package fit various discriminant analysis models, Linear discriminant analysis (LDA, simple regularized) Quadratic discriminant analysis (QDA, simple regularized) Regularized discriminant analysis (RDA, via Friedman (1989)) Flexible discriminant analysis (FDA) using MARS features Naive Bayes models","code":""},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Model Wrappers for Discriminant Analysis","text":"can install released version discrim CRAN : development version GitHub :","code":"install.packages(\"discrim\") # install.packages(\"pak\") pak::pak(\"tidymodels/discrim\")"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"available-engines","dir":"","previous_headings":"","what":"Available Engines","title":"Model Wrappers for Discriminant Analysis","text":"discrim package provides engines models following table.","code":""},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Model Wrappers for Discriminant Analysis","text":"simple model using simulated two-class data set contained package:","code":"library(discrim) parabolic_grid <- expand.grid(X1 = seq(-5, 5, length = 100), X2 = seq(-5, 5, length = 100)) fda_mod <- discrim_flexible(num_terms = 3) %>% # increase `num_terms` to find smoother boundaries set_engine(\"earth\") %>% fit(class ~ ., data = parabolic) parabolic_grid$fda <- predict(fda_mod, parabolic_grid, type = \"prob\")$.pred_Class1 library(ggplot2) ggplot(parabolic, aes(x = X1, y = X2)) + geom_point(aes(col = class), alpha = .5) + geom_contour(data = parabolic_grid, aes(z = fda), col = \"black\", breaks = .5) + theme_bw() + theme(legend.position = \"top\") + coord_equal()"},{"path":"https://discrim.tidymodels.org/dev/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"Model Wrappers for Discriminant Analysis","text":"project released Contributor Code Conduct. contributing project, agree abide terms. questions discussions tidymodels packages, modeling, machine learning, please post RStudio Community. think encountered bug, please submit issue. Either way, learn create share reprex (minimal, reproducible example), clearly communicate code. Check details contributing guidelines tidymodels packages get help.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":null,"dir":"Reference","previous_headings":"","what":"parsnip methods for discriminant analysis — discrim-package","title":"parsnip methods for discriminant analysis — discrim-package","text":"discrim offers various functions fit classification models via discriminant analysis.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"parsnip methods for discriminant analysis — discrim-package","text":"model function works tidymodels infrastructure model can resampled, tuned, tided, etc.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"example","dir":"Reference","previous_headings":"","what":"Example","title":"parsnip methods for discriminant analysis — discrim-package","text":"example, ’ll use flexible discriminant analysis model Hastie, Tibshirani, Buja (1994). fits model uses features generated multivariate adaptive regression spline (MARS) model Friedman (1991). able create class boundaries polygons built-feature selection. parabolic data modeldata package used illustrate: create model, discrim_flexible() function used along engine \"earth\" (contains methods use MARS model). ’ll set number MARS terms use can tuned via methods tune package. fit() function estimates model. fit_xy() can used one wish use formula method. Now let’s plot class boundary predicting grid points creating contour plot 50% probability cutoff.","code":"library(tidymodels) library(discrim) tidymodels_prefer() theme_set(theme_bw()) data(parabolic, package = \"modeldata\") fda_mod <- discrim_flexible(num_terms = 3) %>% # increase `num_terms` to find smoother boundaries set_engine(\"earth\") %>% fit(class ~ ., data = parabolic) fda_mod ## parsnip model object ## ## Call: ## mda::fda(formula = class ~ ., data = data, method = earth::earth, ## nprune = ~3) ## ## Dimension: 1 ## ## Percent Between-Group Variance Explained: ## v1 ## 100 ## ## Training Misclassification Error: 0.136 ( N = 500 ) parabolic_grid <- expand.grid(X1 = seq(-5, 5, length = 100), X2 = seq(-5, 5, length = 100)) parabolic_grid <- parabolic_grid %>% bind_cols( predict(fda_mod, parabolic_grid, type = \"prob\") ) ggplot(parabolic, aes(x = X1, y = X2)) + geom_point(aes(col = class), alpha = .5) + geom_contour(data = parabolic_grid, aes(z = .pred_Class1), col = \"black\", breaks = .5) + coord_equal()"},{"path":[]},{"path":"https://discrim.tidymodels.org/dev/reference/discrim-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"parsnip methods for discriminant analysis — discrim-package","text":"Maintainer: Emil Hvitfeldt emil.hvitfeldt@posit.co (ORCID) Authors: Max Kuhn max@posit.co (ORCID) contributors: Posit Software, PBC [copyright holder, funder]","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim_helpers.html","id":null,"dir":"Reference","previous_headings":"","what":"Internal wrapper functions — klar_bayes_wrapper","title":"Internal wrapper functions — klar_bayes_wrapper","text":"Internal wrapper functions","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/discrim_helpers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Internal wrapper functions — klar_bayes_wrapper","text":"","code":"klar_bayes_wrapper(x, y, ...) pred_wrapper(object, new_data, ...)"},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper for sparsediscrim models — fit_regularized_linear","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"Wrapper sparsediscrim models","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"","code":"fit_regularized_linear(x, y, method = \"diagonal\", ...) fit_regularized_quad(x, y, method = \"diagonal\", ...)"},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"x matrix data frame. y factor column. method character string. ... currently used.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/fit_regularized_linear.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper for sparsediscrim models — fit_regularized_linear","text":"sparsediscrim object","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":null,"dir":"Reference","previous_headings":"","what":"Parameter objects for Regularized Discriminant Models — frac_common_cov","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"discrim_regularized() describes effect frac_common_cov() frac_identity(). smoothness() alias adjust parameter stats::density().","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"","code":"frac_common_cov(range = c(0, 1), trans = NULL) frac_identity(range = c(0, 1), trans = NULL) smoothness(range = c(0.5, 1.5), trans = NULL)"},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"range two-element vector holding defaults smallest largest possible values, respectively. trans trans object scales package, scales::log10_trans() scales::reciprocal_trans(). provided, default used matches units used range. transformation, NULL.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"function classes \"quant_param\" \"param\"","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"parameters can modulate RDA model go linear quadratic class boundaries.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/frac_common_cov.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parameter objects for Regularized Discriminant Models — frac_common_cov","text":"","code":"frac_common_cov() #> Fraction of the Common Covariance Matrix (quantitative) #> Range: [0, 1]"},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":null,"dir":"Reference","previous_headings":"","what":"Parabolic class boundary data — parabolic","title":"Parabolic class boundary data — parabolic","text":"Parabolic class boundary data","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Parabolic class boundary data — parabolic","text":"parabolic data frame","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Parabolic class boundary data — parabolic","text":"data simulated. two correlated predictors two classes factor outcome.","code":""},{"path":"https://discrim.tidymodels.org/dev/reference/parabolic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Parabolic class boundary data — parabolic","text":"","code":"if (rlang::is_installed(\"ggplot2\")) { data(parabolic) library(ggplot2) ggplot(parabolic, aes(x = X1, y = X2, col = class)) + geom_point(alpha = .5) + theme_bw() }"},{"path":[]},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-101","dir":"Changelog","previous_headings":"","what":"discrim 1.0.1","title":"discrim 1.0.1","text":"CRAN release: 2023-03-08 Updated Authors@R.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-100","dir":"Changelog","previous_headings":"","what":"discrim 1.0.0","title":"discrim 1.0.0","text":"CRAN release: 2022-06-23 Case weights enabled [discrim_flexible()] [discrim_linear()] (\"mda\" engine).","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-020","dir":"Changelog","previous_headings":"","what":"discrim 0.2.0","title":"discrim 0.2.0","text":"CRAN release: 2022-03-09 Model definition functions (e.g. discrim_linear()) moved parsnip package.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-013","dir":"Changelog","previous_headings":"","what":"discrim 0.1.3","title":"discrim 0.1.3","text":"CRAN release: 2021-07-21 LDA engine added shrunken discriminant analysis method Ahdesmaki Strimmer (2010) engine = \"sda\". LDA QDA models now engine fits several regularized discriminant models sparsediscrim package.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-012","dir":"Changelog","previous_headings":"","what":"discrim 0.1.2","title":"discrim 0.1.2","text":"CRAN release: 2021-05-28 Added discrim_quad() Fixed bug parameter definitions (#19) Re-licensed package GPL-2 MIT. See consent copyright holders .","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-011","dir":"Changelog","previous_headings":"","what":"discrim 0.1.1","title":"discrim 0.1.1","text":"CRAN release: 2020-10-28 Small updates discrim can run parallel using psock clusters (#13) Updates encoding requirements related current version parsnip.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-010","dir":"Changelog","previous_headings":"","what":"discrim 0.1.0","title":"discrim 0.1.0","text":"CRAN release: 2020-07-07 Small updates work new parsnip version.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-002","dir":"Changelog","previous_headings":"","what":"discrim 0.0.2","title":"discrim 0.0.2","text":"CRAN release: 2020-04-09 Added naivebayes engine naive_Bayes() (#5). Change new parsnip version 0.1.0.","code":""},{"path":"https://discrim.tidymodels.org/dev/news/index.html","id":"discrim-001","dir":"Changelog","previous_headings":"","what":"discrim 0.0.1","title":"discrim 0.0.1","text":"CRAN release: 2019-10-11 First CRAN version","code":""}]