densplot2 {bayesSurv}R Documentation

Probability density function estimate from MCMC output

Description

Displays a plot of the density estimate for each variable in x, calculated by the density function.

This is slightly modified version of densplot function of a coda package to conform to my personal preferences.

Usage

densplot2(x, plot = TRUE, show.obs = FALSE, bwf, bty = "n", main = "",
          xlim, ylim, xlab, ylab, ...)

Arguments

x

an mcmc or mcmc.list object.

plot

if TRUE this function works more or less in the same way as coda function densplot function. If FALSE this function returns one data frame for each chain with computed density which can be used for future plotting.

show.obs

show observations along the x-axis?

bwf

function for calculating the bandwidth. If omitted, the bandwidth is calculate by 1.06 times the minimum of the standard deviation and the interquartile range divided by 1.34 times the sample size to the negative one fifth power.

xlim, ylim, xlab, ylab

further arguments passed to the plot.default function.

bty, main, ...

further arguments passed to the plot.default function.

Value

No return value.

Author(s)

Arnošt Komárek arnost.komarek@mff.cuni.cz


[Package bayesSurv version 3.7 Index]