R/print.rank.test.r

Defines functions print.fkk.test print.rank.test

Documented in print.fkk.test print.rank.test

print.rank.test<-function(x,...) {
	with(x,cat("statistic = ",statistic,", p-value = ", p.value, "\n"))
	if(with(x,exists('conf.int'))) {
		cat(100*x$conf.level," percent confidence interval:\n")
		cat(x$conf.int, "\n")
	}
	if(with(x,exists('estimate'))) {
		cat("Estimate:", x$estimate,"\n")	
	}
}

print.fkk.test<-function(x,...) {
	coef<-cbind(x$estimate,x$conf.int)
	colnames(coef)<-c('estimate','ci.lower','ci.upper')
	cat('Table of estimates and ', 100*x$conf.level," percent confidence intervals:\n")
	print(coef)
	with(x,cat("\n","Test statistic = ",statistic," p-value = ", p.value, "\n"))
}

Try the npsm package in your browser

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

npsm documentation built on Nov. 15, 2023, 1:08 a.m.