# NOT RUN {
N <- 1e4
f <- rbeta(N, 1, 1)
o <- sapply(f, function(x) {rbinom(1, 1, x)})
lapply(c("binning", "smoothing"),
function(m) {
cal <- compute_calibration(f, o, method = m)
with(cal, plot(Forecast, Frequency, type = "l"))
abline(c(0, 1), col = "red")
})
# }
Run the code above in your browser using DataLab