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.")   
    }
}

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.