R/print.perfect.trees.r

Defines functions print.perfect.trees

Documented in print.perfect.trees

print.perfect.trees<-function(x,...){
      if (!is.element("perfect.trees", class(x))) 
        stop("Argument 'x' must be an object of class \"perfect.trees\".")
cat("There are",x$ntrees,"independent trees and", dim(x$coefficients)[1],"parameters in this model. \n")

cat("\n")
cat("Estimation of the prevalences in primary studies and accuracy indices of the test:\n")
print(x$coefficients)
cat("\n")
cat("Model fit statistics:\n")
cat("AIC=",x$aic,"\n")
cat("\n")
print(x$gof)
cat("\n")
}

Try the Metatron package in your browser

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

Metatron documentation built on May 1, 2019, 10:20 p.m.