View source: R/Auxiliary_and_graphics_functions.R
| dposterior | R Documentation | 
Compute (non-normalized) posterior densities for a given parameter set.
dposterior(posterior_sample, data, theta = NULL)
posterior_sample | 
 a list given by the   | 
data | 
 a list containing 
  | 
theta | 
 a matrix or a vector which contains the parameter set.  | 
If the theta is NULL, the posterior density is computed from
the MCMC sample given in the posterior_sample.
Return the (log) posterior density, the (log) likelihood and the (log) prior density for the given parameter set.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.