Description Usage Arguments Value
View source: R/mcmc_functions.R
log_prior
Right now this is set up to calculate the log prior for a set of
parameters based on the normal distribtuion.
TODO there should probably be some better way to set up and define the hyperparameters.
1 | log_prior(params, ptable = MENDplus::MEND2013_params)
|
params |
a vector of parameters, the vector must include parameter names. |
ptable |
a MEND parameter table that will be updated with the values from params. MEND2013_params is used as the default paraemter table. However ptable may be set to any data frame that contains the following columns.
|
the log prior for the sampled parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.