R/print.cosimmr_output.R

Defines functions print.cosimmr_output

Documented in print.cosimmr_output

#' Print a simmr output object
#'
#' @param x An object of class \code{cosimmr_output}
#' @param ... Other arguments (not supported)
#'
#' @return Returns a neat summary of the object
#'
#' @seealso  \code{\link{cosimmr_ffvb}} for creating
#' \code{cosimmr_output} objects
#' @export
print.cosimmr_output <-
  function(x, ...) {
    if (inherits(x, "cosimmr_output") == TRUE) {
         if (inherits(x, "ffvb") == TRUE) {
        print(x$input)
        message("The input data has been run via cosimmr_ffvb and has produced ")
        message(nrow(x$output$BUGSoutput$sims.list$sigma), " samples.")
      }
    }
  }

Try the cosimmr package in your browser

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

cosimmr documentation built on June 22, 2024, 9:22 a.m.