Skip to contents

Builds prior specifications for scalar and short-vector model parameters. Recruitment deviations and selectivity surfaces are intentionally omitted; they are handled by get_recruitment_prior() and get_selectivity_prior().

Usage

get_priors(parameters)

Arguments

parameters

A named list of parameter values to be passed to MakeADFun. Can be generated using the get_parameters function.

Value

A named list of priors. Each element is a list containing:

type

Character string specifying the distribution type (e.g., "normal", "lognormal", "beta", "student")

par1

Numeric value for the first distribution parameter (e.g., mean, meanlog, mu)

par2

Numeric value for the second distribution parameter (e.g., sd, sdlog, phi, sigma)

index

Integer position of the parameter in parameters.

Details

Prior indices bind the result to the ordering of the supplied parameter list. Regenerate the prior list after adding, removing, or reordering parameters.