R/print.predict.survivalFS.R

print.predict.survivalFS <- function (x, ...) 
{
  printscore <- names(x$pred_score)
  whatcurve <- ifelse(printscore == "Brier score", "Survival function", 
                      "Cumulative hazard function")
  
  cat(whatcurve, "prediction of", nrow(x$sf), "observations. \n")
  cat("\n")
  cat(printscore, "of prediction model:", x$pred_score, "\n")
  cat("Number of unique event times:", length(x$uni.death.times), "\n")
}

Try the logicFS package in your browser

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

logicFS documentation built on Nov. 8, 2020, 5:23 p.m.