R/summary.predictStatusProb.R

#' @S3method summary predictStatusProb
summary.predictStatusProb <- function(object,cuts=seq(0,100,25),...){
    table("Predicted risk"=cut(round(100*object,1),
              cuts,
              include.lowest=TRUE,
              labels=paste(paste(cuts[-length(cuts)],cuts[-1],sep="-"),"%",sep="")))
}

Try the ModelGood package in your browser

Any scripts or data that you put into this service are public.

ModelGood documentation built on May 2, 2019, 5 p.m.