bri.Pois.resid: Baysian Pearson residuals for Poisson regression using INLA

View source: R/XW.R

bri.Pois.residR Documentation

Baysian Pearson residuals for Poisson regression using INLA

Description

Baysian Pearson residuals for Poisson regression using INLA

Usage

bri.Pois.resid(inla.obj, covariate = NULL, m = 1000, pmedian = FALSE,
  plot = FALSE, smooth = FALSE, xlab = NULL, cex.lab = 1.25,
  cex.axis = 1.25, ylab = "Bayesian residual", ylim = NULL,
  main = "", ...)

Arguments

inla.obj

an object of class "inla".

covariate

the covariate of interest for the residual plot.

m

the size of posterior samples to be generated from the posterior distribution.

pmedian

if pmedian = TRUE, posterior medians of Bayesian residuals will be calculated.

plot

if plot = TRUE, a Bayesian residual plot will be generated

smooth

if smooth = TRUE, a nonparametric smooth curve will be added.

xlab

a title for the x axis.

cex.lab

The magnification to be used for x and y labels relative to the current setting of cex.

cex.axis

The magnification to be used for x and y labels relative to the current setting of cex.

ylab

a title for the y axis.

main

an overall title for the plot.

...

Details

compute Bayesian Pearson residuals, and generate a index plot or a plot of the residual versus the predictor for Bayesian Possion regression using INLA.

Value

a list consisting of residuals (resid), the covariate used for plot (covariate), the response variable (y)

Author(s)

Xiaofeng Wang, wangx6@ccf.org


julianfaraway/brinla documentation built on April 6, 2023, 2:33 p.m.