R/plot.cv.grpregOverlap.R

## function: plot grpregOverlap
# ------------------------------------------------------------------------------
plot.cv.grpregOverlap <- function(x, log.l=TRUE, type=c("cve", "rsq", "scale", "snr", "pred", "all"), selected=TRUE, vertical.line=TRUE, col="red", ...) {
  if (x$fit$family == 'cox') {
    class(x) <- c('cv.grpsurv', "cv.grpreg")
    plot(x, log.l = log.l, type = type, selected = selected,
         vertical.line = vertical.line, col = col, ...)
  } else {
    plot(x, log.l = log.l, type = type, selected = selected,
         vertical.line = vertical.line, col = col, ...)
  }
} 

Try the grpregOverlap package in your browser

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

grpregOverlap documentation built on May 2, 2019, 4:47 a.m.