Description Usage Arguments Value See Also
View source: R/mcmc_functions.R
Combines the likelihood and priors to produce a likelihood value for the given parameters against he provided data. This is used as the overall cost function for the MCMC algorithm.
1 2 | posterior1(params, param_transform_table, param_table, data,
LIKELIHOOD_FUNCTION, MODEL_FUNCTION)
|
params |
a vector of parameters to be explored |
param_transform_table |
a matrix of flags and bounds as required by |
param_table |
a data table as imported by |
data |
the data of interest |
LIKELIHOOD_FUNCTION |
a valid pointer to an R function which returns a single, log likelihood of the data given the current parameters |
MODEL_FUNCTION |
a valid pointer to an R function which is used to evaluate the model for the current set of parameters |
a single value for the posterior (by Bayes rule)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.