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, mean)
    names(beta) <- rownames(object$summary.results)[1:length(beta)]
    return(beta)
    }
}

Try the CARBayesST package in your browser

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

CARBayesST documentation built on Nov. 2, 2023, 6:23 p.m.