Build a list of mcstate::pmcmc_parameter() objects, starting from the return_default_priors() template and then layering on any overrides.
Source:R/prior_distributions.R
build_priors.Rd
Build a list of mcstate::pmcmc_parameter() objects, starting from the return_default_priors() template and then layering on any overrides.
Arguments
- param_inputs
Named list of initial values (so that we know which parameters actually exist).
- proposal_matrix
Numeric matrix (rownames must match parameter names).
- params_to_estimate
Character vector of names we actually want to estimate.
- override_priors
Optional named list of lists: each element must match the structure returned by return_default_priors().
Value
Named list of mcstate::pmcmc_parameter
objects for all parameters
present in both param_inputs
and proposal_matrix
.