residuals.CARBayesST: Extract the residuals from a model.

View source: R/residuals.CARBayesST.R

residuals.CARBayesSTR Documentation

Extract the residuals from a model.

Description

This function takes a CARBayesST 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 'CARBayesST'
residuals(object, type, ...)

Arguments

object

A CARBayesST fitted model object.

type

A text string and one of c("response", "pearson"). If this argument is omitted the default is "pearson".

...

Ignored.

Author(s)

Duncan Lee


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