R/print.SATE.r

Defines functions print.SATE

Documented in print.SATE

print.SATE <- function(x, ...){

es <- format(x$res, digits = 3, trim = TRUE) 

if(x$full == FALSE ) cat("\nSurvival average treatment effect with ",(1-x$prob.lev)*100,"% interval:\n\n",sep="")
if(x$full == TRUE  ) cat("\nSurvival average treatment effects with ",(1-x$prob.lev)*100,"% intervals:\n\n",sep="")


if(x$full == FALSE ) cat(es[2]," (",es[1],",",es[3],")\n\n",sep="")

if(x$full == TRUE ) print(es)

invisible(x)

}

Try the GJRM package in your browser

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

GJRM documentation built on Oct. 25, 2024, 5:07 p.m.