R/coef.R

Defines functions coef.gslope coef

Documented in coef coef.gslope

#' @title Prints precision matrix from gslope
#'
#' @param x an object of class `'gslope'`
#'
#' @return Prints output on the screen
#'
#' @examples
#' w = gslope(as.matrix(mtcars))
#' coef(w)
#'
#' @export
coef <- function(x){
  UseMethod("coef")
}

#' @rdname coef
#' @export
coef.gslope <- function(x){
  print(x$precision_matrix)
}
StatsIMUWr/gslope documentation built on Oct. 8, 2020, 1:25 a.m.