risk.validation.makeResponseBinary
Syntax
Description
discretizes a continuous response variable by returning a value of BinaryResponse
= risk.validation.makeResponseBinary(ContinuousResponse
)1
for
elements that are greater than or equal to the mean value, and 0
otherwise. ContinuousResponse
contains numeric values that represent
quantities such as observed loss given default (LGD) values. You can use this function for
preprocessing your data whenever you need a binary representation of a continuous
variable.
specifies optional name-value arguments that you can use to customize the discretization.
For example, BinaryResponse
= risk.validation.makeResponseBinary(ContinuousResponse
,Name=Value
)BinaryResponse =
risk.validation.makeResponseBinary(ContinuousResponse,Threshold="median")
uses a
median threshold to discretize a continuous response variable.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2025a
See Also
risk.validation.accuracyRatio
| risk.validation.areaUnderCurve
| risk.validation.kolmogorovSmirnov
| risk.validation.thresholdMetrics
| risk.validation.brierScore
| risk.validation.groupNumberByQuantile
| risk.validation.binomialTest
| risk.validation.correlatedBinomialTest
| risk.validation.hosmerLemeshowTest