dens.plot {PrevMap}R Documentation

Density plot for posterior samples

Description

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

Usage

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


[Package PrevMap version 1.5.4 Index]