Description Usage Arguments Value Author(s) See Also
Function to calculate the log posterior probability density for a model. It is based on a likelihood definition provided by the user, and a multivariate normal or lognormal distribution at the prior.
This log posterior implementation serves as a template for implementing more specific posteriors.
1 2 3 |
par |
parameters |
model |
model function |
L |
observation layout |
y |
data |
prior.dist |
prior distribution type (default "lognormal") |
prior.mean |
prior distribution mean |
prior.sd |
prior distribution standard deviation |
prior.cor |
prior distribution correlation matrix |
prior.def |
prior distribution definition (if using independent one-dimensional distributions) |
loglikeli |
log likelihood function |
... |
additional arguments passed to |
Returns log posterior.
Peter Reichert <peter.reichert@eawag.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.