desire_individual: Low, high, and extreme desirability functions

Description Usage Arguments Value

View source: R/desire_individual.R

Description

These functions map numeric variables to a [0, 1] scale where low, high, or extreme values are most desirable.

Usage

1
2
desire_individual(x, desire_type = desire.type, cut_type = cut.type, cut1,
  cut2, cut3, cut4, min = 0, max = 1, scale = 1)

Arguments

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.

Value

Returns a numeric vector of desirability scores.


haleyeidem/integRATE documentation built on May 17, 2019, 2:26 p.m.