densplot2             package:bayesSurv             R Documentation

_P_r_o_b_a_b_i_l_i_t_y _d_e_n_s_i_t_y _f_u_n_c_t_i_o_n _e_s_t_i_m_a_t_e _f_r_o_m _M_C_M_C _o_u_t_p_u_t

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

       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.

_A_u_t_h_o_r(_s):

     Arno&#353t Kom&#225rek komarek@karlin.mff.cuni.cz

