R/print.summary.est.data.frame.R

Defines functions print.summary.est.data.frame

Documented in print.summary.est.data.frame

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

  if (x$type == "str"){ ## stratified
    
    cat("\n         Summary for effect estimation \n\n")
    cat("\n Treatment/exposure:", x$treat)
    cat("\n Outcome:", x$outcome)
    cat("\n Effect measure:", x$meas, "\n")

    cat("\n Effect estimates:\n\n")
    print(x$eff.tab)

    cat("\n Stratum-specific parameter estimates:\n\n")
    print(format(x$str))

    cat("\n Stratum-specific adjusted parameter estimates:\n")
    cat(x$adjust)

    cat("\n Stratum-specific weights:\n")
    cat(x$weights)
    cat("\n\n")

  }else{ ## matched
    
    cat("\n         Summary for effect estimation \n\n")
    cat("\n Treatment/exposure:", x$treat)
    cat("\n Outcome:", x$outcome)
    cat("\n Effect measure:", x$meas, "\n")
    
    cat("\n Effect estimates:\n\n")
    print(x$eff.tab)
    cat("\n\n")

  }
}

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.