R/print.summary.bal.matched.data.frame.R

Defines functions print.summary.bal.matched.data.frame

Documented in print.summary.bal.matched.data.frame

print.summary.bal.matched.data.frame <- function(x,
                                                 ...){

  if (x$method == "test"){

    cat("\n Balance check using: Statistical tests \n\n")
    
  }else{

    cat("\n Balance check using: Standardized differences \n\n")
  }

  cat("\n Summary of balance check: \n\n")
  print(x$bal.sum)

  if ( length(x$cov.not)==0 ){
    cat("\n\n Covariates not completely tested: ---\n")
  }else{
    cat("\n\n Covariates not completely tested:\n")
    cat(x$cov.not, "\n")
  }

  cat("\n\n Detailed balance check (overall): \n\n")  
  print(x$bal.sho)


  if (x$method == "test"){

    cat("\n\n Detailed balance check [p.values]: \n\n")  
    print(x$bal.det)
  
    cat(paste("\n\n Significance level for tests: ", x$sig.lev/100, "\n\n", sep=""))
    
  }else{

    cat("\n\n Detailed balance check [standardized differences]: \n\n")  
    print(x$bal.det)

    cat(paste("\n\n Cut point for standardized differences: ", x$sig.lev, "\n\n", sep=""))

  }
}

Try the nonrandom package in your browser

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

nonrandom documentation built on May 29, 2017, 11:41 p.m.