beta_predict: Predict Calibrated Probabilities

Description Usage Arguments See Also Examples

View source: R/beta_predict.r

Description

Returns calibrated probabilities from calib$model, where calib is obtained by calling the beta_calibration function.

Usage

1
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 beta_calibration function.

See Also

beta_predict.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

betacal documentation built on May 1, 2019, 10:24 p.m.