R/ranef.mexhaz.R

Defines functions ranef.mexhaz ranef

Documented in ranef ranef.mexhaz

ranef <- function(x, ...) UseMethod("ranef")

ranef.mexhaz <- function(x, ...){

    if (is.na(x$random)){
        stop("The ranef.mexhaz() function can only be used if a random effect was included in the model...")
    }
    se.mu.hat <- sqrt(diag(x$var.mu.hat))

    TAB <- cbind(x$mu.hat,se.mu.hat)

    return(TAB)
}

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.