R/summary.collinear_output.R

Defines functions summary.collinear_output

Documented in summary.collinear_output

#' Summarize all results of `collinear()`
#'
#' @param object (required, list of class \code{collinear_output}) Object to summarize. Default: NULL
#' @param ... Ignored, kept for consistency with generic.
#' @return list:
#' If \code{object} was created with \code{responses = NULL}, a sublist named "result" containing a vector with the selected predictors. Otherwise, a list named after each response containing the corresponding variable selection.
#' @method summary collinear_output
#' @family S3_methods
#' @autoglobal
#' @export
summary.collinear_output <- function(
  object = NULL,
  ...
) {
  #print summary of selections
  lapply(
    X = object,
    FUN = summary
  )
}

Try the collinear package in your browser

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

collinear documentation built on Dec. 8, 2025, 5:06 p.m.