maxyoudencut function
The maxyoudencut function returns the value which maximizes the youden index of the ROC curve defined by column1 and by the class attclass.
The default value for the class attribute (if more than two values are present) can be specified as the optional parameter defclass.
The computation can be performed according to the groups defined in the group parameter, if required.
Function and parameters
maxyoudencut(column, attclass, defclass, group, weights)
Parameter | Description |
---|---|
column | It identifies the column to which you want to apply the formula. Its type must be numeral or nominal. The column parameter is mandatory. |
attclass | It identifies the column to which you want to apply the formula. It must be a nominal attribute. If it is not nominal, it will be casted to nominal upon function’s computation. The attclass parameter is mandatory. |
defclass | It is the default value for the class attribute. |
group | The attribute by which group results. Multiple attributes can be specified, as long as they are enclosed in double brackets. |
weights | It defines the importance of a certain attribute. |
Example
The following example uses the Bike sales dataset.
Description | Screenshot |
---|---|
| |
|