R/print.summary.mniptw.R

Defines functions print.summary.mniptw

Documented in print.summary.mniptw

#' Produces a summary table for `mniptw` object 
#'
#' @param x An `mniptw` object
#' @param ... Additional arguments.
#'
#' @method print summary.mniptw
#' @export
#' @md
print.summary.mniptw <- function(x, ...)
{
      	nSum <- length(x$summaryList)      	
      	for(i in 1:nSum){	
      		cat("Summary for time period ", x$uniqueTimes[i], ": \n")
      		print(x$summaryList[[i]])
      		if (i<nSum) cat("\n")
      		
      	}

      invisible(x)
     }

Try the twang package in your browser

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

twang documentation built on Oct. 25, 2021, 5:08 p.m.