R/print.summary.mult.ev.data.sim.R

Defines functions print.summary.mult.ev.data.sim

Documented in print.summary.mult.ev.data.sim

print.summary.mult.ev.data.sim <-
function(x, ...)
{
    attr(x,"class") <- "data.frame"
    nn <- c("", "Number of subjects at risk", "Number of events", "Total time of follow-up",
            "Time of follow-up (median)", "Density of incidence")
    for (i in 2:length(x))
    {
      cat("\n")
      cat(nn[i], "\n")
      cat("----------------------------\n ")
      print(cbind(x[1],x[i]), na.print="", row.names=FALSE,quote=FALSE)
      cat("\n")
    }
}

Try the survsim package in your browser

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

survsim documentation built on Dec. 14, 2021, 5:09 p.m.