R/vcov.fcrr.R

Defines functions vcov.fcrr

Documented in vcov.fcrr

#' Extract variance-covariance matrix from an "fcrr" object.
#'
#' @description  Similar functional utility to \code{vcov} methods.
#'
#' @param object \code{fcrr} object.
#' @param ... Additional arguments. Not implemented.
#' @return Returns the estimated variance-covariance matrix (via bootstrap) from object \code{object}.
#' @export
#'
vcov.fcrr <- function(object, ...) {
  if(!object$isVariance) {
    stop("Variance must be calculated. Rerun fastCrr with 'variance = TRUE'.")
  } else {
    object$var
  }
}

Try the fastcmprsk package in your browser

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

fastcmprsk documentation built on Sept. 12, 2019, 1:04 a.m.