R/print.matchit.R

Defines functions print.matchit

print.matchit <- function(x, digits = getOption("digits"), ...){
  cat("\nCall: ", deparse(x$call), sep="\n")
  cat("\nSample sizes:\n")
  
  #if(any(x$weights>0)) 
  #  nn <- rbind(table(x$treat),
  #              table(x$weights>0, x$treat),
  #              c(0,0))
  #else 
  #  nn <- rbind(table(x$treat),
  #              table(x$weights>0,x$treat)[2:1,])

  print.table(x$nn, ...)
  invisible(x)
  cat("\n")
}
itpir/SimTests_DEPRECATED documentation built on May 18, 2019, 7:10 a.m.