R/residuals.CARBayesST.R

Defines functions residuals.CARBayesST

Documented in residuals.CARBayesST

residuals.CARBayesST <- function(object, type="pearson", ...)
{
    #### Return one of two types of residuals
    if(type=="response")
    {
        return(object$residuals$response)
    }else if(type=="pearson")
    {
        return(object$residuals$pearson)
    }else
    {
        return("Error. That is not one of the allowable residual types.")   
    }
}
duncanplee/CARBayesST documentation built on May 29, 2021, 7:35 a.m.