dposterior {bliss} | R Documentation |
dposterior
Description
Compute (non-normalized) posterior densities for a given parameter set.
Usage
dposterior(posterior_sample, data, theta = NULL)
Arguments
posterior_sample |
a list given by the |
data |
a list containing
|
theta |
a matrix or a vector which contains the parameter set. |
Details
If the theta
is NULL, the posterior density is computed from
the MCMC sample given in the posterior_sample
.
Value
Return the (log) posterior density, the (log) likelihood and the (log) prior density for the given parameter set.
Examples
data(data1)
data(param1)
# result of res_bliss1<-fit_Bliss(data=data1,param=param1)
data(res_bliss1)
# Compute the posterior density of the MCMC sample :
res_poste <- dposterior(res_bliss1$posterior_sample,data1)
[Package bliss version 1.1.1 Index]