R/print.chenreg.R

Defines functions print.chenreg

Documented in print.chenreg

#' print.chenreg


#' @param x  a model created by `chen_reg`
#' @param ... further arguments passed to or from other methods.
#' @rdname print.chenreg
#' @export print.chenreg
#' @export

print.chenreg <-
  function(x, ...) {
    cat("\nCall:", deparse(x$call, width.cutoff = floor(getOption("width") * 0.85)), "", sep = "\n")

    cat("\nCoefficients:\n")
    print(structure((as.vector((x$coefficients))),
      .Names = x$names
    ))
  }
AlissonRP/chenReg documentation built on July 20, 2023, 4:50 a.m.