log_prior.Rd
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.
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.