R/predcurver-predcurve.R

Defines functions predcurve

Documented in predcurve

#' 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")
sachsmc/predcurver documentation built on May 29, 2019, 12:44 p.m.