R/summary.mlr.R

Defines functions summary.mlr

Documented in summary.mlr

#' Summarizing Multinomial Logistic Regression Model
#'
#' The function summary.mlr gives a summary from an object from mlr()
#'
#' @param object An object resulting from mlr
#' @param \dots additional arguments to be passed.
#'
#' @return Summary of the results obtained from mlr
#'
#' @export

summary.mlr = function(object,...){
  cat("\n")
  cat("Call:", "\n")
  print(object$call)
  cat("\n")
  cat("Fitted multinomial regression model", "\n")
  cat("Residual deviance:", object$deviance, "\n")
  cat("Number of fitted parameters:", object$npar, "\n" )
  cat("AIC:", object$AIC, "\n" )
  cat("BIC:", object$BIC, "\n" )
  cat("\n")
  cat("Intercepts:", "\n")
  print(round(object$m, digits = 2))
  cat("\n")
  cat("Regression coefficients:", "\n")
  print(round(object$A, digits = 2))
  cat("\n")
}

Try the lmap package in your browser

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

lmap documentation built on April 3, 2025, 5:47 p.m.