R/print.predJointNested.R

Defines functions print.predJointNested

##' @export
print.predJointNested <- function(x, digits = 3, ...) 
{
	if(!inherits(x, "predJointNested")) stop("The object x must be a class predJoint.")
		
	if (!is.null(cl <- x$call)){
		cat("Call:\n")
		dput(cl)
		cat("\n")
	}	
	cat("Prediction of a terminal event given the history of the patient\n")
	cat("---------------------------------------------------------------------\n")
	cat("\n")
	print(x$pred,row.names=F,digits=digits)	
}

Try the frailtypack package in your browser

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

frailtypack documentation built on Nov. 25, 2023, 9:06 a.m.