R/print.LambertW_input.R

Defines functions print.LambertW_input

Documented in print.LambertW_input

#' @rdname LambertW_input_output-methods
#' @description
#' \code{print.LambertW_input} prints an overview of the input object.
#' @export

print.LambertW_input <- function(x, ...) {
  if (x$user.defined) {
    cat(" Note: This is a user-defined Lambert W x F distribution. \n")
    cat(" * * * * * * * * \n")
  }
  cat(" Input distribution: ")
  cat(x$distname)
  cat("\n with parameters: ")
  if (x$user.defined) {
    beta.names <- names(x$beta)
  } else {
    beta.names <- get_beta_names(x$distname)
  }
  cat(paste(paste0(beta.names, "=", round(x$beta, 3)), collapse = ", "))
  cat("\n")
} 

Try the LambertW package in your browser

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

LambertW documentation built on Nov. 2, 2023, 6:17 p.m.