beta_predict {betacal} | R Documentation |
Returns calibrated probabilities from calib$model, where calib is obtained by calling the beta_calibration
function.
beta_predict(p, calib)
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 |
## 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)