residuals.CARBayes: Extract the residuals from a model.

View source: R/residuals.CARBayes.R

residuals.CARBayesR Documentation

Extract the residuals from a model.

Description

This function takes a CARBayes object and returns a set of residuals. The allowable types of residual are "response" (raw) and "pearson" (the default). In each case the fitted values are based on posterior means.

Usage

    ## S3 method for class 'CARBayes'
residuals(object, type, ...)

Arguments

object

A CARBayes fitted model object.

type

A text string and one of "response" or "pearson". If this argument is omitted the default is "pearson".

...

Ignored.

Author(s)

Duncan Lee


CARBayes documentation built on May 29, 2024, 7:44 a.m.