beta_predict {betacal} | R Documentation |
Predict Calibrated Probabilities
Description
Returns calibrated probabilities from calib$model, where calib is obtained by calling the beta_calibration
function.
Usage
beta_predict(p, calib)
Arguments
p |
A vector of probabilities that the model will calibrate. |
calib |
A list containing a calibration map, a calibration model and the fitted parameters, obtained by calling the |
See Also
Examples
## Creating a vector of probabilities
p <- seq(0.01,0.99,0.01)
## Creating a label vector based on the probability vector
y <- rbinom(99,1,p)
## Fitting beta calibration with three parameters
calib <- beta_calibration(p, y, "abm")
## Obtaining calibrated probabilities
probas <- beta_predict(p, calib)
[Package betacal version 0.1.0 Index]