plot.KbMCMC {EntropyMCMC}R Documentation

Plot sequences of estimates of Kullback distance or Entropy against iterations

Description

This S3 method for plot plots by default sequences of estimates of the Kullback distance K(p^t,f) between the (estimated) pdf of the MCMC algorithm at time t, p^t, and the target density f, for t=1 up to the number of iterations that have been provided/computed. It can also plot the first term in the Kullback distance, i.e. the Entropy E_{p^t}[\log(p^t)]. Its argument is an object of class KbMCMC such as the one returned by, e.g., EntropyMCMC.

Usage

## S3 method for class 'KbMCMC'
plot(x, Kullback = TRUE, lim = NULL, ylim = NULL, 
            new.plot = TRUE, title = NULL, ...)

Arguments

x

An object of class KbMCMC, such as the one returned by EntropyMCMC.

Kullback

TRUE to plot the Kullback distance, FALSE to plot the Entropy.

lim

for zooming over 1:lim iterations only.

ylim

y limits, passed to plot.

new.plot

set to FALSE to add the plot to an existing plot.

title

The title; if NULL, then a default title is displayed.

...

Further parameters passed to plot or lines.

Value

The graphic to plot.

Author(s)

Didier Chauveau.

References

See Also

EntropyMCMC, EntropyMCMC.mc

Examples

## See the EntropyMCMC Examples.

[Package EntropyMCMC version 1.0.4 Index]