View source: R/bayesian_helpers.R
log_posterior | R Documentation |
Calculate log posterior (one set of parameters at a time)
log_posterior(.samples, .func, .args, .l_targets, .l_params, .transform)
.samples |
A table or vector of sampled parameter values |
.func |
A function defining the model to be calibrated |
.args |
A list of arguments to be passed to .func |
.l_targets |
A list containing a vector of targets' names, a vector of targets' weights, a vector of targets' distributions, and a table for each target that contains the values (column name 'value') and standard errors (column name 'sd') of the corresponding target. |
.l_params |
A list that contains a vector of parameter names, distributions and distributions' arguments. |
.transform |
Logical for whether to back-transform parameters to their original scale. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.