bri.band.plot: Plot credible band for a nonlinear function using plot()

View source: R/YY.R

bri.band.plotR Documentation

Plot credible band for a nonlinear function using plot()

Description

Plot credible band for a nonlinear function using plot()

Usage

bri.band.plot(result, name = NULL, alpha = 0.05, ind = NULL,
  x = NULL, xlab = NULL, ylab = NULL, main = NULL, sub = NULL,
  xlim = NULL, ylim = NULL, cex.lab = 1.5, cex.axis = 1.5,
  type = c("random", "fitted", "linear"), hpd = FALSE,
  gray.band = TRUE)

Arguments

result

the result object from INLA call

name

the name of the component for which to do the plot

alpha

specifies the credibility level as 100(1-alpha)%

ind

the indices for the part of a component that should be plotted

x

the predictor vector

xlab

a title for the x axis

ylab

a title for the y axis

main

an overall title for the plot

sub

a sub title for the plot

xlim

sets the limits of x axis

ylim

sets the limits of y axis

type

the type of nonlinear function to be plotted: 'random' random effects; 'fitted' fitted values; 'linear' linear predictors

hpd

TRUE if highest posterior density (HPD) interval is plotted (FALSE by default)

gray.band

TRUE (default) if the credible band is filled with gray color

Value

A plot of posterior mean and credible band for a nonlinear function estimated by INLA


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