R/print.HR.R

Defines functions print.HR

Documented in print.HR

print.HR <- function(x, ...) {
	if ( !inherits(x, "HR") ) {stop("Object must be of class HR");}
#	mydata <- x$dataset;
#	fit <- x$coxfit;
#	coxphm <- x$phtest;
	cat("\n");
	cat("Cox Proportional Hazards Model\n");
	print(x$coxfit);
	cat("\n");
	cat("Proportional Hazards Assumption\n");
	print(x$phtest);
} # print.HR

Try the smoothHR package in your browser

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

smoothHR documentation built on Sept. 4, 2022, 5:07 p.m.