Nothing
#' Calculates the scaled Brier score
#'
#' @param obs Observed outcomes.
#' @param pred Predicted outcomes in the form of probabilities.
#'
#' @return The value for the scaled Brier score.
#' @seealso \code{\link{psfmi_perform}}, \code{\link{pool_performance}}
#' @author Martijn Heymans, 2020
#'
#' @export
scaled_brier <- function(obs, pred) {
1 - (mean((obs - pred)^2) / (mean(obs) * (1 - mean(obs))))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.