R/print.varbin.R

Defines functions print.varbin

Documented in print.varbin

print.varbin <- function(x, ...) {
  tab <- x$tab
  nam <- rownames(tab)
  tab$varmu <- sqrt(tab$varmu)
  names(tab)[2] <- "se"
  feat <- x$features
  cat("N = ", feat["N"], " clusters, n = ", feat["n"], " subjects, m = ", feat["m"],
      " cases.\n", sep = "")
  cat("\nProportion:\n")
  List <- lapply(tab, function(x) {
    ifelse(is.na(x), "", format(round(x, digits = 4), nsmall = 3))})
  summ <- as.data.frame(t(do.call("rbind", List)))
  rownames(summ) <- nam
  print(summ)
  
  cat("\nalpha = ", x$alpha, " for the CIs; R = ", length(x$muboot),
      " samples for the bootstrap estimates.\n", sep = "")
  invisible(tab)
}

Try the aods3 package in your browser

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

aods3 documentation built on April 12, 2025, 1:48 a.m.