R/summary.R

#' @title Summary for SMARTp class
#'
#' @param object SMARTp object to summarise
#' @param ... Other parameters for summary
#'
#' @method summary SMARTp
#'
#' @export

summary.SMARTp <- function(object, ...){
  cat('Sample size: \n', sprintf("\t The sample size required is %s.", ceiling(object$N)))
}

Try the SMARTp package in your browser

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

SMARTp documentation built on May 17, 2019, 9 a.m.