R/residuals.carbayes.R

Defines functions residuals.CARBayes

Documented in residuals.CARBayes

residuals.CARBayes <- function(object, type="deviance", ...)
{
    #### Return one of three types of residuals
    if(type=="response")
    {
        return(object$residuals$response)
    }else if(type=="pearson")
    {
        return(object$residuals$pearson)
    }else if(type=="deviance")
    {
        return(object$residuals$deviance)
    }else
    {
        return("Error. That is not one of the allowable residual types.")   
    }
}
duncanplee/CARBayes documentation built on June 5, 2017, 3:20 a.m.