R/vcov_glm.R

Defines functions vcov.spglm

Documented in vcov.spglm

#' @rdname vcov.spmodel
#' @method vcov spglm
#' @order 3
#' @export
vcov.spglm <- function(object, var_correct = TRUE, ...) {
  type <- "fixed"
  if (type == "fixed") {
    if (var_correct) {
      return(object$vcov$fixed$corrected)
    } else {
      return(object$vcov$fixed$uncorrected)
    }
  }
}

#' @rdname vcov.spmodel
#' @method vcov spgautor
#' @order 4
#' @export
vcov.spgautor <- vcov.spglm

Try the spmodel package in your browser

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

spmodel documentation built on April 4, 2025, 1:39 a.m.