bri.lmresid.plot: linear regression model Baysian residual plot

View source: R/XW.R

bri.lmresid.plotR Documentation

linear regression model Baysian residual plot

Description

linear regression model Baysian residual plot

Usage

bri.lmresid.plot(inla.obj, covariate = NULL, m = 1000,
  pmedian = FALSE, smooth = FALSE, xlab = NULL, cex.lab = 1.25,
  cex.axis = 1.25, ylab = "Bayesian residual", 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.

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

generate a Bayesian residual index plot or a plot of the residual versus the predictor for linear 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.