R/vcov.lqmix.R

Defines functions vcov.lqmix

Documented in vcov.lqmix

#' Calculate variance-covariance matrix for a fitted \code{lqmix} object
#'
#' Return the bootstrap variance-covariance matrix for the coefficients of a fitted \code{\link{lqmix}} object.
#'
#' @param object an \code{lqmix} object
#' @param \dots not used
#'
#' @return A matrix of the estimated covariances between the parameter estimates in the linear predictor of the model.
#' @export



vcov.lqmix = function(object, ...){

  vcov = object$vcov
  if(is.null(vcov)) warning("The variance-covariance matrix was not computed. Please, fit again the model setting vcov = TRUE.")

  return(vcov)

}

Try the lqmix package in your browser

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

lqmix documentation built on Nov. 5, 2025, 7:15 p.m.