R/vcov.mexhaz.R

Defines functions vcov.mexhaz vcov

Documented in vcov vcov.mexhaz

vcov <- function(object, ...) UseMethod("vcov")

vcov.mexhaz <- function(object, ...){

    if (is.na(object$random)){
        res <- object$vcov
    }
    else {
        res <- object$vcov[1:(object$n.par-1),1:(object$n.par-1)]
    }

    return(res)
}

Try the mexhaz package in your browser

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

mexhaz documentation built on Oct. 31, 2022, 5:08 p.m.