Compute the posterior density of the coefficient function.
compute_beta_posterior_density(beta_sample, param)
a matrix. Each row is a coefficient function computed from the posterior sample.
a list containing:
a numerical vector, the time points.
a numerical vector, the time points.
an integer (optional), the number of iteration to drop from the Gibbs sample.
an integer (optional), correspond to the lims
option
of the kde2d
funtion.
a numerical vector (optional) to compute beta sample on a different grid.
an integer (optional) to thin the posterior sample.
An approximation of the posterior density on a two-dimensional grid
(corresponds to the result of the kde2d
function).
The posterior densities correponds to approximations of the marginal
posterior distribitions (of beta(t) for each t).
The sample is thinned in order to reduce the correlation and the
computational time of the function kde2d
.