This function calibrates the predictor-outcome relationship using isotonic regression.
Usage
calibrate(predictor, outcome)
Arguments
- predictor
A numeric vector representing the predictor variable.
- outcome
A numeric vector representing the outcome variable.
Value
A step function that represents the calibrated relationship between the predictor and the outcome.