Description Usage Arguments Value
View source: R/desire_individual.R
These functions map numeric variables to a [0, 1] scale where low, high, or extreme values are most desirable.
1 2 | desire_individual(x, desire_type = desire.type, cut_type = cut.type, cut1,
cut2, cut3, cut4, min = 0, max = 1, scale = 1)
|
x |
Vector of numeric values. |
desire_type |
Class of desirability function to apply (low, high, or extreme). |
cut_type |
Class of cuts assigned to desirability function (numerical, percentile, or none). |
cut1, cut2, cut3, cut4 |
Cut points where the desirability function changes. |
min, max |
Minimum (default = 0) and maximum (default = 1) desirability scores. |
scale |
Controls shape of the desirability function. Larger values correspond to more steep and strict curves whereas smaller values correspond to more gradual and inclusive curves. |
Returns a numeric vector of desirability scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.