Calculates the negative sum of log prior densities for model parameters.
Arguments
- parameters
A named
listof parameter values to be passed toMakeADFun. Can be generated using the get_parameters function.- priors
A named
listof prior specifications for the parameters. Each element should be alistwith elementstype,par1,par2, andindex. Can be generated using the get_priors function.
Details
Supported type values are "normal",
"student", "lognormal", and "beta". Prior indices
refer to positions in parameters. Each prior must be named, and its
name must match the parameter at its stored index. This causes stale prior
lists to fail closed if parameters are reordered. Scale parameters must be
positive; beta means must lie strictly between zero and one.
