R/print.mchtest.R

Defines functions print.mchtest

print.mchtest<-function(x,...){
    class(x)<-"htest"
    print(x)
    cat(paste("p-value estimated from",x$nmc,"Monte Carlo replications"))
    cat("\n")
    cat(format(100 * attr(x$p.conf.int, "conf.level")), 
        "percent confidence interval on p-value:\n", 
            format(c(x$p.conf.int[1], x$p.conf.int[2])), "\n")

    class(x)<-"mchtest"
    invisible(x)
}

Try the perm package in your browser

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

perm documentation built on Aug. 25, 2023, 1:07 a.m.