R/summary.relative.effect.R

Defines functions summary.relative.effect

Documented in summary.relative.effect

summary.relative.effect <- function(object,
                                    ...){

  results <- matrix(c(as.numeric(object$adj.treat.cov),
                      as.numeric(object$rel.eff.treat)),
                    
                    nrow=length(object$name.sel),
                    ncol=2,
                    dimnames=list(object$name.sel,
                      c("adjusted treatment effect",
                        "relative effect")))

  res <- list(resp   = object$name.resp,
              treat  = object$name.treat,
              sel    = object$name.sel,
              unadj  = object$unadj.treat,
              result = results)
  

  class(res) <- "summary.relative.effect"

  res

}

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.