R/coef.CARBayesST.R

Defines functions coef.CARBayesST

Documented in coef.CARBayesST

coef.CARBayesST <- function(object,...)
{
    #### Return the estimated regression coefficient
    if(is.null(nrow(object$samples$beta)))
    {
        return(NULL)  
    }else
    {
    beta <- apply(object$samples$beta, 2, median)
    names(beta) <- rownames(object$summary.results)[1:length(beta)]
    return(beta)
    }
}
duncanplee/CARBayesST documentation built on May 29, 2021, 7:35 a.m.