R/print.pamrcved.R

Defines functions print.pamrcved

Documented in print.pamrcved

 print.pamrcved <-function(x, ...) {
   cat("Call:\n")
   dput(x$call)
  
   mat <- rbind(threshold = format(round(x$threshold, 3)), nonzero = 
                format(trunc(x$size)), errors = trunc(x$error * nrow(
                                              x$yhat)))
   if(!is.na(x$pvalue.survival[1])){
     mat <- rbind(mat, pvalue=round(x$pvalue.survival,6))
   }
   dimnames(mat) <- list(dimnames(mat)[[1]], paste(1:ncol(mat)))
 
   print(t(mat), quote = FALSE)
   invisible()
 }

Try the pamr package in your browser

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

pamr documentation built on May 2, 2019, 12:35 p.m.