#' Computes the predictiveness curve from a vector of estimated risks
#'
#' The predictiveness curve is defined as the distribution of the risk, as a function of the risk percentiles.
#'
#' @param risk A vector of risk values which must be in (0, 1)
#'
#' @return output A object of class "predcurve", which is a data frame that contains two columns: the risk percentiles, and the risk values
#'
#' @keywords prediction accuracy predictiveness curve
#'
#' @export
#'
predcurve <- function(risk, ...) UseMethod("predcurve")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.