dens.plot: Density plot for posterior samples

Description Usage Arguments Author(s)

View source: R/foo.R

Description

Plots the autocorrelogram for the posterior samples of the model parameters and spatial random effects.

Usage

1
2
3
4
5
6
7
8
dens.plot(
  object,
  param,
  component.beta = NULL,
  component.S = NULL,
  hist = TRUE,
  ...
)

Arguments

object

an object of class 'Bayes.PrevMap'.

param

a character indicating for which component of the model the density plot is required: param="beta" for the regression coefficients; param="sigma2" for the variance of the spatial random effect; param="phi" for the scale parameter of the Matern correlation function; param="tau2" for the variance of the nugget effect; param="S" for the spatial random effect.

component.beta

if param="beta", component.beta is a numeric value indicating the component of the regression coefficients; default is NULL.

component.S

if param="S", component.S can be a numeric value indicating the component of the spatial random effect. Default is NULL.

hist

logical; if TRUE a histrogram is added to density plot.

...

additional parameters to pass to density.

Author(s)

Emanuele Giorgi e.giorgi@lancaster.ac.uk

Peter J. Diggle p.diggle@lancaster.ac.uk


PrevMap documentation built on Oct. 7, 2021, 5:07 p.m.

Related to dens.plot in PrevMap...