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)
     }
mattcefalu/twang documentation built on Oct. 24, 2021, 6:38 a.m.