Learn R Programming

desire (version 1.0.7)

compositeDF: Construct composite desirability functions

Description

Combines a desirability function with an inner function and returns a new function object which calculates $d(f(x))$.

Usage

compositeDF(expr, d, ...)

Arguments

expr
any valid inner function
d
desirability function
...
additional arguments passed to function

Value

A function object of a composite desirability function.

Details

Currently specialized for expressions, functions and objects with class lm.

References

J. Harrington (1965): The desirability function. Industrial Quality Control, 21: 494-498. G.C. Derringer, D. Suich (1980): Simultaneous optimization of several response variables. Journal of Quality Technology 12 (4): 214-219. D. Steuer (2005): Statistische Eigenschaften der Multikriteriellen Optimierung mittels Wuenschbarkeiten. Dissertation, Dortmund University of Technology, http://hdl.handle.net/2003/20171. H. Trautmann, C. Weihs (2006): On the Distribution of the Desirability Index using Harrington's Desirability Function. Metrika 63(2): 207-213.

See Also

harrington1 and harrington2 for Harrington type desirability functions; derringerSuich for desirability functions of Derringer and Suich;

Examples

Run this code
h <- harrington2(-1, 1, 1)
## Calculate h(x^2):
ch1 <- compositeDF(x^2, h)
ch1(0.5)
ch1(c(0.2,0.5,0.7))

## Calculate h(f(x))
f <- function(x) 2*x + 3
ch2 <- compositeDF(f, h)
ch2(0.3)
ch2(c(0.3,0.35,0.9))

Run the code above in your browser using DataLab