desirability-class: Class `desirability`
Source:R/3.2_Factorial_designs_Classes.R
desirability.c.RdA class representing the desirability metrics for responses in a design.
Public fields
responseA numeric vector specifying the responses for which desirability is calculated.
lowA numeric vector representing the lower bounds of the desirable range for each response.
highA numeric vector representing the upper bounds of the desirable range for each response.
targetA numeric vector or character string indicating the target values or goals for each response.
scaleA numeric vector specifying the scaling factors used in the desirability calculation.
importanceA numeric vector indicating the importance of each response in the desirability calculation.
Methods
Method new()
Initializes a new desirability.c object with specified parameters.
Usage
desirability.c$new(
response = NULL,
low = NULL,
high = NULL,
target = NULL,
scale = NULL,
importance = NULL
)Arguments
responseA numeric or character vector specifying the responses for which desirability is calculated.
lowA numeric vector representing the lower bounds of the desirable range for each response.
highA numeric vector representing the upper bounds of the desirable range for each response.
targetA numeric vector or character string indicating the target values or goals for each response.
scaleA numeric vector specifying the scaling factors used in the desirability calculation.
importanceA numeric vector indicating the importance of each response in the desirability calculation.
Method plot()
Plots the desirability functions based on the specified parameters.
Arguments
scaleA numeric vector specifying the scaling factors used in the plot.
mainA character string specifying the main title of the plot.
xlabA character string specifying the label for the x-axis.
ylabA character string specifying the label for the y-axis.
line.widthA numeric value specifying the width of the plot lines.
colA vector of colors for the plot lines.
numPointsAn integer specifying the number of points to plot (default is 500).