R/summary.planningML.R

Defines functions summary.planningML

Documented in summary.planningML

#'
#' Generate descriptive summary for objects returned by functions in EHRsampling
#'
#' Generate descriptive summary for objects returned by functions in EHRsampling.
#'
#' @method summary planningML
#'
#' @param object the object returned by other functions.
#' @param ... ignored arguments
#'
#'
#' @return \code{summary()} prints the objects returned by other functions.
#'
#'
#' @export

summary.planningML = function(object, ...){

  ## featureselection -----
  if (!is.null(object$features)) {
    cat("The selected important features are (ranked by importance): \n")
    print(object$features)

  }

  ## sample size determination -----
  if (!is.null(object$outtable)){
    cat("The minimum sample size(s) are: \n")
    print(object$minimum.samplesize)
  }


}

Try the planningML package in your browser

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

planningML documentation built on July 9, 2023, 5:27 p.m.